de bug cmi commands

Forum rules
Before you post please read this

de bug cmi commands

Postby moonPeople on 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.
moonPeople
Level 2
Level 2
 
Posts: 54
Joined: Thu May 10, 2012 12:13 pm

Linux Mint is funded by ads and donations.
 

Re: de bug cmi commands

Postby Oscar799 on 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
Oscar799
Level 18
Level 18
 
Posts: 8809
Joined: Tue Aug 11, 2009 9:21 am
Location: United Kingdom

Re: de bug cmi commands

Postby Jamesc359 on 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.”
User avatar
Jamesc359
Level 3
Level 3
 
Posts: 106
Joined: Sun May 06, 2012 1:42 pm

Re: de bug cmi commands

Postby moonPeople on 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.
moonPeople
Level 2
Level 2
 
Posts: 54
Joined: Thu May 10, 2012 12:13 pm


Return to Scripts & Bash

Who is online

Users browsing this forum: No registered users and 1 guest