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 linux commands in perl script  siji at 11:36 on Friday, June 02, 2006
 

I´m trying to use linux commands in my perl script in this way:
$command=`cp file.txt /tmp/file.txt`;
print $command;
This code works properly but the problem begin when I try to insert a variable onto the "$command" variable.
There is any way to do something like this?
$file="/forum/file2.txt";
$command=`cp $file /tmp/$file`;

This lines don´t work but I need something that returns the same result.
Anybody know a solution?


  Re: execute linux commands in perl script  amery buck at 06:12 on Monday, April 05, 2010
 

Nice post about commands in perl script. I like your blog very much because it has very interesting articles of different topics like testking HP0-D03, testking HP0-D04 and testking HP0-J22 and their tips and tricks. I am a very big googler and search on different topics. Between searching i found your nice blog. Thanks for your this great blog.








CodeToad Experts

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








Recent Forum Threads
•  Disabe onbeforeunload event?
•  Re: MS Access connection in JSP
•  Re: execute linux commands in perl script
•  Re: Server Name or Address could not be resolved?
•  Re: is null or not an object error
•  Re: Using Crystal Reports for generating dynamic reports in JAVA
•  Re: how to connect asp.net to sql server 2000
•  Re: Dissolve effect for images using Javascript!
•  Re: convert minutes into hours and minutes


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