
budman
User
Feb 10, 2011, 8:26 PM
Post #2 of 2
(368 views)
|
|
Re: [anjaliaglawe] Perl Not ableto run system command of network.
[In reply to]
|
Can't Post
|
|
my perl code: $cmd = "imutilsc saveCredential -url htttps:/urltoconnect -userName username -userPassword password -keyring /tmp/keyring"; chdir('/opt/ibm/InstallationManager/eclipse/tools') or die $!; exec "$cmd" or die $!; Url's contain two slashes: htttps://urltoconnect Secondly, do you want the system call to return to the perl script? If so, use system($cmd) instead of exec - exec runs the cmd and never returns to the script. perldoc -f exec perldoc -f system hope that helps Rich
|