in reply to VSS automation strange problem
my $result = `SS Dir \"$/\" -Yadmin`;
Have a look at Corion's node where it is pointed out that you didn't do a character escape for the $ in the backticked command. This is likely to take care of the issues you are having. You might notice in my original suggestion I had the command held in a variable ($cmd) which I print out to verify it looks like I want.
my $cmd = "\"$sspath\\ss.exe\" Checkout \"\$/DMS MW/SCADA/Substati +on Editor +Files/$filename\" -C- -I- -GL\"$checkout_path \""; #print "\n********************\n\$cmd=$cmd\n"; # if the file is already there it doesn't download it again. # BUT, it won't overwrite a file unless the read-only bit is set. system $cmd;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: VSS automation strange problem
by cormanaz (Deacon) on Jan 04, 2017 at 17:01 UTC | |
by Lotus1 (Vicar) on Jan 04, 2017 at 19:44 UTC | |
by cormanaz (Deacon) on Jan 06, 2017 at 00:38 UTC | |
by Corion (Patriarch) on Jan 04, 2017 at 17:11 UTC |