No script output to stdout,stderr

Zhang Lei zhl at nanjing-fnst.com
Tue Feb 22 01:33:18 UTC 2005


please use "&&";

$ ./shcheckout.sh && ./checkout.pl

Regards
Zhang Lei

----- Original Message ----- 
From: "Brendan Gibson" <Brendan.Gibson at bds.tv>
To: <redhat-list at redhat.com>
Sent: Tuesday, February 22, 2005 2:51 AM
Subject: No script output to stdout,stderr


>I am using a new installation of Red Hat Enterprise 4.  I have a problem
> in that when I run a script from the command line I do not get any
> output.
> 
> I have tried a shell script and a perl script, listed below:
> 
> shcheckout.sh:
> 
> #!/bin/sh
> echo "Shhhh...."
> 
> 
> checkout.pl
> 
> #!/usr/bin/perl -w
> use strict;
> print "I am a perl script\n";
> 
> I can run the scripts like
> 
> $ sh shcheckout.sh
> Shhhh....
> 
> AND
> 
> $ perl checkout.pl
> I am a perl script
> 
> However running them as
> 
> ./shcheckout.sh 
> AND
> ./checkout.pl
> 
> produce no output, but redirecting the output to a file works OK.
> 
> Does anyone know what's going on, and how to fix it?
> 
> -- 
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list




More information about the redhat-list mailing list