RE: No script output to stdout,stderr

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I think you misunderstand what I am trying to explain.  I am not trying to
run these two scripts together, merely demonstrating that I have the same
problem for perl scripts and shell scripts.  Seems that I get no output to
stdout or stderr when I have a #! directive at the start of a script.

-----Original Message-----
From: redhat-list-bounces@xxxxxxxxxx
[mailto:redhat-list-bounces@xxxxxxxxxx]On Behalf Of Zhang Lei
Sent: 22 February 2005 01:33
To: General Red Hat Linux discussion list
Subject: Re: No script output to stdout,stderr


please use "&&";

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

Regards
Zhang Lei

----- Original Message ----- 
From: "Brendan Gibson" <Brendan.Gibson@xxxxxx>
To: <redhat-list@xxxxxxxxxx>
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@xxxxxxxxxx?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

Please note that all BDS email addresses have now changed to
firstname.lastname@xxxxxx,  please update your address books and visit our
new site at http://www.bds.tv. 

This email is confidential and intended solely for the use of the individual
to whom it is addressed. Any views or opinions presented are solely those of
the author and do not necessarily represent those of Broadcasting
Dataservices.  If you are not the intended recipient, be advised that you
have received this email in error and that any use, dissemination,
forwarding, printing, or copying of this email is strictly prohibited. If
you have received this email in error please notify the sender. 

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux