The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
How to call a perl script from a shell script
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
How to call a perl script from a shell script
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
3
(
permalink
)
08-30-2007
Yogesh Sawant
Part Time Moderator and Full Time Dad
Join Date: Sep 2006
Location: Rossem, Tazenda
Posts: 1,086
ranj@chn, you are correct.
Optionally, you can set execute permission to the
perl
script, add the following line as first line in the script:
Code:
#!/usr/bin/
perl
-w
and then call it as:
Code:
test.pl arg1 arg2 arg2
Yogesh Sawant
View Public Profile
Visit Yogesh Sawant's homepage!
Find all posts by Yogesh Sawant
Find Yogesh Sawant's past nominations received
Find Yogesh Sawant's present nominations given