[Ilugc] [OT] running perl

  • From: schalla@xxxxxxxxxxxxxx (shobhan)
  • Date: Mon, 28 Oct 2002 17:28:17 +0530

--------------080205020507070103080403
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

one solution i can offer Sivanandam

1) in your shell script put the line for perl some thing like this:
    your_shell.sh
   
    #!/bin/sh
         perl urperl_prg.pl arg[1] arg[2] arg[3]

here u can directly run the shell script the shell script will in turn 
run the perl program

your_shell.sh arg[1] arg[2] arg[3]

Hope this is what u want.

Schalla
Systems Analyst
VA Software Corp

Elanchezhian Sivanandam wrote:

hi,
      i have replaced a shell script by a perl script.
      Now instead of running the shell script my team mates have to 
run the perl script.

      so, my team mates have to remember whenever they run it that 
they have to
      give the command like

      "perl perl.pl argument[1] argument[2] argument[3]" instead of the

      "shell_script argument[1] argument[2] argument[3]"

      I want to make this transition easy and smooth.......
      so i want to name the perl script same as the shell script and 
execute the command the same way as the shell_script.
           i mean i don't want to give "perl perlscript.pl "every time 
rather the old way....
      any suggestions?????

      thanks for ur reply.




--------------080205020507070103080403
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <title></title>
</head>
<body>
<font face="Helvetica, Arial, sans-serif" size="-1">one solution i can offer
Sivanandam<br>
<br>
1) in your shell script put the line for perl some thing like this:<br>
&nbsp;&nbsp;&nbsp; your_shell.sh<br>
&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; #!/bin/sh<br>
&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; perl urperl_prg.pl arg[1] arg[2] 
arg[3]<br>
<br>
here u can directly run the shell script the shell script will in turn run
the perl program<br>
<br>
your_shell.sh arg[1] arg[2] arg[3]<br>
<br>
Hope this is what u want.<br>
<br>
Schalla<br>
Systems Analyst<br>
VA Software Corp<br>
</font><br>
Elanchezhian Sivanandam wrote:<br>
<blockquote type="cite" cite="mid3DBD5C2F.3050701@xxxxxxxxxxxx">hi, <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; i have replaced a shell script by a perl script. 
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Now instead of running the shell script my team 
mates have to run  the
perl script. <br>
 <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; so, my team mates have to remember whenever they 
run it that they  have
to <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; give the command like <br>
 <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "perl perl.pl argument[1] argument[2] 
argument[3]" instead of the <br>
 <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "shell_script argument[1] argument[2] 
argument[3]" <br>
 <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I want to make this transition easy and 
smooth....... <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; so i want to name the perl script same as the 
shell script and  execute
the command the same way as the shell_script. <br>
&nbsp;&nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; i mean i don't want to 
give "perl perlscript.pl "every time  rather
the old way.... <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; any suggestions????? <br>
 <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; thanks for ur reply. <br>
 <br>
</blockquote>
<br>
<br>
</body>
</html>

--------------080205020507070103080403--


Other related posts: