Also make sure the shell scripts starts with: #!/bin/sh or something similar.
/B ----- Original Message ----- From: "Jianping Zhu" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, January 17, 2003 05:53 Subject: how to use script to run perl scripts > > I have a perl file pe.pl > > ----------------------------------- > #!/usr/bin/perl > use warnings; > > $scalar = "5"; > print $scalar * $scalar,"\n"; > print "Hello World!"; > --------------------------------- > > when i type ./pp.pl it works > Now i write anoterh scrpit file pp > > --------------------------------- > #script file pp > pe.pl>out > > ---------------------------------- > I expected that it will work the same when i type pp as when i type > ./pe.pl > > but instead i got a error message > > "bash: pp: command not found" > > why and how to fix this problem? > > Thanks > > > > > -- > redhat-list mailing list > unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe > https://listman.redhat.com/mailman/listinfo/redhat-list -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list