problems with script

2004-04-13 Thread Christopher Spears
I created the following script: #!/bin/tcsh #csh script to prepend standard input to file argument #Version 1 #name temp file set tf = /tmp/ppd.$$ #get argument name set dest = $argv[1] #copy standard input, $dest to $tf cat - $dest $tf #replace original file mv $tf $dest However, when I

Re: problems with script

2004-04-13 Thread Igor Pechtchanski
On Tue, 13 Apr 2004, Christopher Spears wrote: I created the following script: #!/bin/tcsh #csh script to prepend standard input to file argument #Version 1 #name temp file set tf = /tmp/ppd.$$ #get argument name set dest = $argv[1] #copy standard input, $dest to $tf cat - $dest

Re: problems with script

2004-04-13 Thread Christopher Spears
--- Igor Pechtchanski [EMAIL PROTECTED] wrote: On Tue, 13 Apr 2004, Christopher Spears wrote: I created the following script: #!/bin/tcsh #csh script to prepend standard input to file argument #Version 1 #name temp file set tf = /tmp/ppd.$$ #get argument name set dest

Re: problems with script

2004-04-13 Thread Igor Pechtchanski
On Tue, 13 Apr 2004, Christopher Spears wrote: --- Igor Pechtchanski [EMAIL PROTECTED] wrote: ^^^ http://cygwin.com/acronyms/#PCYMTNQREAIYR On Tue, 13 Apr 2004, Christopher Spears wrote: I created the following script: #!/bin/tcsh #csh

Re: problems with script

2004-04-13 Thread Christopher Spears
Hmmm...The good new is that I am no longer getting error messages. The bad news is that nothing seems to be ending up in the file. I created a file called disk_storage in vi. Then I did the following: (date; du ~) ~/disk_storage This put some text into the file. Then I ran: (date; du ~) |

Re: problems with script

2004-04-13 Thread Larry Hall
At 09:58 PM 4/13/2004, you wrote: Hmmm...The good new is that I am no longer getting error messages. The bad news is that nothing seems to be ending up in the file. I created a file called disk_storage in vi. Then I did the following: (date; du ~) ~/disk_storage This put some text into the