de bug cmi commands

About writing shell scripts and making the most of your shell
Forum rules
Topics in this forum are automatically closed 6 months after creation.
Locked
moonPeople

de bug cmi commands

Post by moonPeople »

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.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
Oscar799
Level 20
Level 20
Posts: 10405
Joined: Tue Aug 11, 2009 9:21 am
Location: United Kingdom

Re: de bug cmi commands

Post by Oscar799 »

Moved here by moderator
Image
Jamesc359

Re: de bug cmi commands

Post by Jamesc359 »

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
moonPeople

Re: de bug cmi commands

Post by moonPeople »

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.
Locked

Return to “Scripts & Bash”