Add ./ or the full path when you type pp. Or you can END (anywhere else not considered secure) your PATH environment variable with : or :. To search the current directory. Make sure it's at the end, or at least after ANY AND ALL system directories such as /bin or /usr/bin, and so on.
Rick. -----Original Message----- From: Jianping Zhu [mailto:[EMAIL PROTECTED]] Sent: Friday, January 17, 2003 8:53 AM To: [EMAIL PROTECTED] 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