first attempt at perl (SEC: UNCLASSIFIED)

Brett Worth brettw at cray.com.au
Fri Apr 19 18:42:10 EST 2002


On Fri, 19 Apr 2002, Lisman, FLGOFF Jarrad wrote:

> Non WORKING
> SCP_CMD = `which scp`;
> system("SCP_CMD -rq $srcfile $TARGET:$destfile");

I think you just need to "chomp($SCP_CMD);" before using it.  
The variable is getting a newline.

-- 
Brett

  /) _ _ _/_/ / / /  _ _//
 /_)/</= / / (_(_/()/< ///

 Cray Australia.
 brettw at cray.com +61 2 6295 4023

PGP: 1024R/27EB604F  22A9 A85A 22BD 496B 2443  
                     35E5 46F7 0712 27EB 604F





More information about the linux mailing list