de bug cmi commands

Forum rules
Before you post please read how to get help
moonPeople
Level 2
Level 2
Posts: 50
Joined: Thu May 10, 2012 12:13 pm

de bug cmi commands

Postby moonPeople » Thu Jun 28, 2012 10:02 am

what is the best approach to find a fix to this situation.

Code: Select all

#$ set | less
bash: set: write error: Broken pipe

also had issue with #wget , did not work to transport a plain text file from a server.


I was thinking of re loading the BASH shell thru synaptic, but ?.
Is there a de bug command to run.

Thanks in advance.

User avatar
Oscar799
Level 19
Level 19
Posts: 9413
Joined: Tue Aug 11, 2009 9:21 am
Location: United Kingdom

Re: de bug cmi commands

Postby Oscar799 » Thu Jun 28, 2012 5:15 pm

Moved here by moderator
Image
"Don't fix it if it ain't broken,don't break it if you can't fix it" Husse
Registered Linux User #511789

User avatar
Jamesc359
Level 3
Level 3
Posts: 149
Joined: Sun May 06, 2012 1:42 pm

Re: de bug cmi commands

Postby Jamesc359 » Sun Jul 01, 2012 4:47 pm

I don't know about debugging that, but you can fix your problem by redirecting stderr to /dev/null.

Code: Select all

set 2> /dev/null | less


For wget I'd just use a small script

Code: Select all

#!/bin/sh

tmp=`tempfile`

wget -O $tmp <URL>
less $tmp
rm $tmp
“Gosh, you've... really got some nice toys here.”

moonPeople
Level 2
Level 2
Posts: 50
Joined: Thu May 10, 2012 12:13 pm

Re: de bug cmi commands

Postby moonPeople » Tue Jul 03, 2012 4:15 pm

Thank you for the assistance.
i am trying to get to writting scripts and to know the bash shell - herbrew, greek, mandarian and basic shell syntax all rolled in one.
as well as the basic config files that actually need manipulation.
Thank you again.


Return to “Scripts & Bash”

Who is online

Users browsing this forum: No registered users and 3 guests