What is meant by the PERL system function?

Status
Not open for further replies.
Re: System function in PERL..

#!/usr/bin/perl -w

system("ls -F /var > /tmp/t.tmp");

It will produce following result:

A file in /tmp direcory, check it out.
 

explain what? 2 lines of code?
 

You can just use backslash to escape the <"> (double quotes) characters
system("emerge -up world | mail -s \"RESULTS\" $MAIL_ADDRESS");
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…