Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-30-2008, 06:44 PM
Aaron Gray
 
Posts: n/a
How do I make bash echo commands

How do I make bash show the commands it is executing ?

Many thanks in advance,

Aaron


Reply With Quote
  #2 (permalink)  
Old 06-30-2008, 07:10 PM
Aaron Gray
 
Posts: n/a
Re: How do I make bash echo commands

"Lew Pitcher" <lpitcher@teksavvy.com> wrote in message
news:bc701$48692e64$cef8b59e$1444@TEKSAVVY.COM-Free...
> In alt.os.linux, Aaron Gray wrote:
>
>> How do I make bash show the commands it is executing ?

>
> set -x


Thanks Lew,

Aaron


Reply With Quote
  #3 (permalink)  
Old 06-30-2008, 07:12 PM
Lew Pitcher
 
Posts: n/a
Re: How do I make bash echo commands

In alt.os.linux, Aaron Gray wrote:

> How do I make bash show the commands it is executing ?


set -x


--
Lew Pitcher

Master Codewright & JOAT-in-training | Registered Linux User #112576
http://pitcher.digitalfreehold.ca/ | GPG public key available by request
---------- Slackware - Because I know what I'm doing. ------


Reply With Quote
  #4 (permalink)  
Old 06-30-2008, 07:49 PM
Aaron Gray
 
Posts: n/a
Re: How do I make bash echo commands

"Lew Pitcher" <lpitcher@teksavvy.com> wrote in message
news:bc701$48692e64$cef8b59e$1444@TEKSAVVY.COM-Free...
> In alt.os.linux, Aaron Gray wrote:
>
>> How do I make bash show the commands it is executing ?

>
> set -x


Is there anyway to get it to echo without the '+ ' at the beggining of the
line ?

Aaron


Reply With Quote
  #5 (permalink)  
Old 06-30-2008, 08:51 PM
Dan C
 
Posts: n/a
Re: How do I make bash echo commands

On Mon, 30 Jun 2008 20:49:04 +0100, Aaron Gray wrote:

>>> How do I make bash show the commands it is executing ?


>> set -x


> Is there anyway to get it to echo without the '+ ' at the beggining of the
> line ?


Read the fucking man page, you sniveling helpless stooge.

> X-Newsreader: Microsoft Outlook Express 6.00.2900.3138


Oh. I guess you can't do that.

Sounds like a homework question to me. Bugger off.


--
"Ubuntu" -- an African word, meaning "Slackware is too hard for me".

Reply With Quote
  #6 (permalink)  
Old 06-30-2008, 09:22 PM
Aaron Gray
 
Posts: n/a
Re: How do I make bash echo commands

"Dan C" <youmustbejoking@lan.invalid> wrote in message
news:pan.2008.06.30.20.51.20.227389@moria2.lan...
> On Mon, 30 Jun 2008 20:49:04 +0100, Aaron Gray wrote:
>
>>>> How do I make bash show the commands it is executing ?

>
>>> set -x

>
>> Is there anyway to get it to echo without the '+ ' at the beggining of
>> the
>> line ?

>
> Read the fucking man page, you sniveling helpless stooge.
>
>> X-Newsreader: Microsoft Outlook Express 6.00.2900.3138

>
> Oh. I guess you can't do that.
>
> Sounds like a homework question to me. Bugger off.


Hi Dan, just here to annoy you again, as thats my sole purpose in life,
sorry I have not been annoying you again lately, but I am back now :)

No its not a homework question. I actually do open source software
development and am porting my project across Windows, Mac OSX and Linux so
people can use it what ever machine they are using. Now its great to ask a
quick question and get a quick answer without having to read through man
pages (which I hate doing) and move on to the next problem.

Cheers for the answer,

Aaron


Reply With Quote
  #7 (permalink)  
Old 07-01-2008, 01:27 AM
Chris F.A. Johnson
 
Posts: n/a
Re: How do I make bash echo commands

On 2008-06-30, Aaron Gray wrote:
> "Dan C" <youmustbejoking@lan.invalid> wrote in message
> news:pan.2008.06.30.20.51.20.227389@moria2.lan...
>> On Mon, 30 Jun 2008 20:49:04 +0100, Aaron Gray wrote:
>>
>>>>> How do I make bash show the commands it is executing ?

>>
>>>> set -x

>>
>>> Is there anyway to get it to echo without the '+ ' at the beggining of
>>> the
>>> line ?

>>
>> Read the fucking man page, you sniveling helpless stooge.
>>
>>> X-Newsreader: Microsoft Outlook Express 6.00.2900.3138

>>
>> Oh. I guess you can't do that.
>>
>> Sounds like a homework question to me. Bugger off.

>
> Hi Dan, just here to annoy you again, as thats my sole purpose in life,


While that's a worthy objective, you are only annoying everyone
else by reposting DanC's drivel. Please just killfile him.

--
Chris F.A. Johnson, author | <http://cfaj.freeshell.org>
Shell Scripting Recipes: | My code in this post, if any,
A Problem-Solution Approach | is released under the
2005, Apress | GNU General Public Licence
Reply With Quote
  #8 (permalink)  
Old 07-01-2008, 01:31 AM
Chris F.A. Johnson
 
Posts: n/a
Re: How do I make bash echo commands

On 2008-06-30, Aaron Gray wrote:
> "Lew Pitcher" <lpitcher@teksavvy.com> wrote in message
> news:bc701$48692e64$cef8b59e$1444@TEKSAVVY.COM-Free...
>> In alt.os.linux, Aaron Gray wrote:
>>
>>> How do I make bash show the commands it is executing ?

>>
>> set -x

>
> Is there anyway to get it to echo without the '+ ' at the beggining of the
> line ?


PS4=

Or:

set -v ## Not quite the same as set -x

--
Chris F.A. Johnson, author | <http://cfaj.freeshell.org>
Shell Scripting Recipes: | My code in this post, if any,
A Problem-Solution Approach | is released under the
2005, Apress | GNU General Public Licence
Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 07:17 AM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0


Sponsors:
Personal Loans | Mortgage Loans | Mortgage Calculator | Daily free software | Debt Loans



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109