codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  help me how to execute a linux shell script file(.sh file ) in perl  ppokharkar at 08:56 on Friday, May 04, 2007
 

hi all

suppose i am having a add.sh file of linux shell script. i want to execute this .sh file in perl. What is the command to execute a .sh file in perl.


Thanks in advance

Reagards
Pandurang


  Re: help me how to execute a linux shell script file(.sh file ) in perl  javabits at 19:03 on Wednesday, May 09, 2007
 

try the system command

http://perldoc.perl.org/functions/system.html

Should look something like

@args = ("command.sh", "arg1", "arg2");
system(@args) == 0
or die "system @args failed: $?"

You may need to insure command.sh is in your path or that you use an absolute path to the shell script.

semper fi...

  Re: help me how to execute a linux shell script file(.sh file ) in perl  ppokharkar at 08:27 on Thursday, May 10, 2007
 

hey thanks man....
really really lots of thanks




  Re: help me how to execute a linux shell script file(.sh file ) in perl  amery buck at 14:40 on Monday, March 22, 2010
 

Beautiful blog with great informational content. Mostly certifications related and javascript related topics are really very good. testking 642-357, testking 642-359 and testking 642-415 are also good topics. Thanks for this great sharing.








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Re: orphan files (owner account deleted in linux but files exists)
•  Re: how to bring File Open dialog window from javascript code
•  Re: Checking Multiple Forms on a Sngle Page
•  Re: Hiii!!!Problem with JTable Coloring
•  Re: how connect oracle with asp.net
•  Re: horizontal scroll bar for drop down list box
•  Re: How to run ASP code on server automatically wrt date & time
•  Re: Running ASP Program From Visual Basic Form
•  Re: PHP swapping images


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2010