Hi !I have a problem about execute iwsubmit in my perl program regarding to submit a file to staging. When I execute to do this in DOS modeiwsubmit -w -u default/main/Information/WORKAREA/Admin/includes/press.html 'press submitted' It seem to be work well.But when I try to coding perl program to execute this task, It did not do anything, the specified file is not go to staging at all, so I doubt that - Do I code the wrong syntax in the program ? I use Teamsite 6.7.1 with Windows 2003 Operating system. It is coded exactly like this in my Perl program$submit= "$iwhome\\bin\\iwsubmit -w -u \\default\\main\\Information\\WORKAREA\\$waname[1]\\includes\\press.html 'press submitted' ";Previously, I use Teamsite 6.1 with UNIX and the same Program coding like this$submit=`/teamsite/iw-home/bin/iwsubmit -w -u main/Information/WORKAREA/$waname[1]/includes/press.html 'press submitted' `;And it works well.So I'm not sure that when I convert this line from under UNIX OS to Windows OS, are there anything need to change besides changing / to \\ and ` to "Can anyone help me ? please.ThanksTstg
I could not find the system execute command in your snippet? Are you doing anywhere like system($submit);
... It is coded exactly like this in my Perl program$submit= "$iwhome\\bin\\iwsubmit -w -u \\default\\main\\Information\\WORKAREA\\$waname[1]\\includes\\press.html 'press submitted' ";Previously, I use Teamsite 6.1 with UNIX and the same Program coding like this$submit=`/teamsite/iw-home/bin/iwsubmit -w -u main/Information/WORKAREA/$waname[1]/includes/press.html 'press submitted' `;And it works well.So I'm not sure that when I convert this line from under UNIX OS to Windows OS, are there anything need to change besides changing / to \\ and ` to "
`...`
"..."
...$area =~ tr|\\|/|; # make sure you use forward slashes for vpath$iwhome =~ tr|\\|/|; # simplifies things in the long run (IMO)...my $submit_cmd = qq($iwhome/bin/iwsubmit -w -u $vpath_to_file "$comment");my $results = qx($submit_cmd 2>&1);my $status = $? >>8; # remove shell padding of return codeif ($status) { die "[$status]: $results"; # or some other error handling code}...
Thats the only param, Devnet user can assume.