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:
  execute a script in perl script  nivi at 12:54 on Tuesday, November 18, 2008
 

Hi,

I am executing the below script in the terminal.

/usr/lib/filter/rip "<some options>" /anyfilename > /outputfile

I am executing a script named rip with some options and giving the input file and redirecting it to a file.

I want to use perl script to execute this command.

I used system command as below.

system("/usr/lib/filter/rip "<some options>" /anyfilename > /outputfile");

It is not working. How to execute.
Please help.

  Re: execute a script in perl script  blee003 at 03:04 on Monday, January 05, 2009
 

Sounds to me like you'd want to use backticks `` to execute a command or external script from your perl. I have an example doing this at http://www.scripthat.com/viewtopic.php?f=2&t=12 .









CodeToad Experts

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








Recent Forum Threads
• Re: store string from text file to vector
• Re: c# .net Exception of type System.StackOverflowException was thrown.
• Re: error: expression must have a constant value
• Re: Script Does Folder Exist – If Not Create It
• $_GET not working
• GET METHOD
• Re: windows service - web service - com
• Re: Storing data from HTML to Excel or TXT
• Re: Help totalReads=1 totalReads++=2 write totalReads 3 not 2


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