Gossamer Forum
Home : General : Perl Programming :

using RCP from the perl code

Quote Reply
using RCP from the perl code
 
HI All

I am reading the machine names from a configuration file and doing an rcp as :

Code:

qx (rcp $machine_ip:$log_path/*.log $machine_name);

However upon execution , I get the error

rcp: /a/tmp/migration/ALL_DATA/*.log: No such file or directory

The script is not taking the machine name for some reason.

I would have pasted the complete code here , but its a bit bulky ..