Search Results

Search: Posts Made By: slchin
21,167
Posted By slchin
Perl echo with double quotes
I need to echo a string that has double quotes in a Perl script.

#!/usr/bin/env perl
`echo Rule123 -comment \"blah blah\" >> $filename`

I'd like to get below appended to $filename:
Rule...
22,363
Posted By slchin
Perl copy vs system cp
What are the pros & cons, if any, between using Perl's copy module vs OS's system cp, for copying a file to another directory? Or are they exactly the same?

1) Perl's File::Copy module, as in
...
6,876
Posted By slchin
Perl script with rsh gets stty invalid message
I have a Perl script, that does a system call with rsh to a remote machine.

#!/usr/bin/env perl
system ("rsh remote-machine echo 99");

And I get the following:

stty: standard input:...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 07:53 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy