Re: No redirection output



On 19 Mar 2006 05:03:14 -0800, choitau@xxxxxxxxxxxx
<choitau@xxxxxxxxxxxx> wrote:
Hi,

I have written a sh script to run a program and redirect the output to
some files.

myprog 10000 123 1 1 50 50 50 50 5 > 10000_2_5.txt
myprog 10000 123 1 1 20 20 20 20 5 > 10000_5_5.txt
myprog 10000 123 1 1 10 10 10 10 5 > 10000_10_5.txt

However, if i try to run the sh script, the program can run
successfully but no output files can be generated.

If you remove the redirection from your script, it should produce output
on your screen. Did you write your script on a Windows machine? If so,
it might create files named like "10000_2_5.txt\r", which might not be
seen in "ls" or "ls *.txt". Otherwise, I see no reason that this should
work from the command prompt and not from a script. Is myprog in a
directory in your PATH? Does myprog put itself in the background, so
the script results in two or three processes running at the same time?


--
If you would understand your own age, read the works of fiction produced
in it. People in disguise speak freely.
.



Relevant Pages

  • Re: LDAP query information
    ... a "Dim" statement. ... script is run. ... Microsoft MVP Scripting and ADSI ... to redirect the output to a text file: ...
    (microsoft.public.windows.server.scripting)
  • Re: Page_Load method issues with Back Button
    ... startup script if it should run or not. ... redirect set the hidden field to a different value. ... Instead the client receives the response.redirect and still ... I have created a webform. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: PHP file download counter
    ... This will log the request to a flat file then redirect the ... // Class SimpleRedirectLog ... $err = false; ... Write a script that supplies the file download with the correct mime type ...
    (comp.lang.php)
  • Re: Redirect sends to cc recipients again. Bug?
    ... to redirect outgoing mail to an email account that I only open/receive ... Create an outgoing message and have a copy of that sent to another ... Try using this script instead of redirecting. ... Entourage Help Page for download if that would help. ...
    (microsoft.public.mac.office.entourage)
  • Re: MF Server rts32 does not run in AIX 5.3L batch queue
    ... I can't redirect output to /dev/null as the program running under the ... configuration of the queue device for the job queue. ... > If your script has a command like ...
    (comp.lang.cobol)