http://qs321.pair.com?node_id=459988

jaimeGonz has asked for the wisdom of the Perl Monks concerning the following question:

Dear Monks, I need your esteemed wisdom.
I am trying to run an scp command on a ermote system which I am pretty sure is being split at the whitespace between the 2 arguments. I have tried every trick in my library to no avail. How do I avoid the command being split into 2 lines? The code is below:
$command = "scp $user\@$ip:$source/$_ $staging/$_";<br> print("$command\n");<br> system($command);<br>
and the output:
scp daylite_backup@192.168.0.53:/home/staging/dayliteLeads/courseBooki +ngs/1116932421807.xml <br> /dayliteImports/staging_courses/1116932421807.xml <br> usage: scp [-pqrvBC1246] [-F config] [-S program] [-P port]<br> [-c cipher] [-i identity] [-l limit] [-o option]<br> [[user@]host1:]file1 [...] [[user@]host2:]file2<br> sh: line 2: /dayliteImports/staging_courses/1116932421807.xml: No such + file or directory

Janitored by holli - added code tags