No script output to stdout,stderr

Brendan Gibson Brendan.Gibson at bds.tv
Mon Mar 7 12:09:12 UTC 2005


Yes they do.  Only when a shell script is called with #! in the top of an
external file do I get no output.  I have been able to work around it, but
still puzzles me.

-----Original Message-----
From: redhat-list-bounces at redhat.com
[mailto:redhat-list-bounces at redhat.com]On Behalf Of Cameron Simpson
Sent: 01 March 2005 04:01
To: General Red Hat Linux discussion list
Subject: Re: No script output to stdout,stderr


On 18:51 21 Feb 2005, Brendan Gibson <Brendan.Gibson at bds.tv> wrote:
| 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?

No, I don't know what's going on. It is not normal at all.
Do other commands produce output in that shell?
-- 
Cameron Simpson <cs at zip.com.au> DoD#743
http://www.cskk.ezoshosting.com/cs/

A software engineering discussion from Perl-Porters:
Chip Salzenberg:        The wise one has seen the calamity,
                        and has proceeded to hide himself.
                        - Ecclesiastes
Gurusamy Sarathy:       He that observeth the wind shall not sow;
                        and he that regardeth the clouds shall not reap.

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

Please note that all BDS email addresses have now changed to
firstname.lastname at bds.tv,  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. 




More information about the redhat-list mailing list