You need to specify the frm value as 'E:\\vmvijita.log' so that when the
OS get the 'del' parameter it is 'E:\vmvijita.log'. Specifying it as
'E:/vmvijita.log' is equivalent to running:
C:\>del E:/vmvijita.log
Invalid switch - "vmvijita.log".
You get this error because the Windows shell does not understand file
paths with forward slashes.
David Bender
STAF/STAX Development
8-1268 (512-838-1268)
IBM Austin Bldg. 903-5B002
Internet: [EMAIL PROTECTED]
Vijita <[EMAIL PROTECTED]>
10/15/2008 02:10 AM
To
David Bender/Austin/[EMAIL PROTECTED]
cc
staf-users@lists.sourceforge.net
Subject
Re: [staf-users] To execute internal commands with STAF
Hi,
I tried with mode attribute.
<script>
frm = 'E:/vmvijita.log'
</script>
<process name="'execute file'">
<location>'local'</location>
<command mode="'shell'">'del'</command>
<parms>'%s' % (frm)</parms> <!--
C:/STG-Pun/FixedFiles/BATScript/Bat.pl -->
<stdout>'E:/out.txt'</stdout>
<stderr mode="'stdout'"/>
<returnstdout/>
</process>
Its throwing an error that - Invalid switch - "vmvijita.log".
Can you please help me with this?
Thanks.
On Tue, Oct 14, 2008 at 7:34 PM, David Bender <[EMAIL PROTECTED]> wrote:
Did you include the "mode" attribute in the <command> element:
<command mode="'shell'">
David Bender
STAF/STAX Development
8-1268 (512-838-1268)
IBM Austin Bldg. 903-5B002
Internet: [EMAIL PROTECTED]
Vijita <[EMAIL PROTECTED]>
10/13/2008 11:22 PM
To
staf-users@lists.sourceforge.net
cc
Subject
[staf-users] To execute internal commands with STAF
Hi,
I want to execute internal commands like move, cd, mkdir etc. on client
machine with STAF.
When I tried to use <process> <parms> these tags, this can execute batch
file or any file with process defined as to invoke interpreter and
filename passed as parameter to process. But i is unable to execute move
command when I gave move command in <process> tag and filename in <parms>
tag.
It gave me error that move file not found. I tried this on Windows XP
where I think move , cd etc.these commands are implemented in the
interpreter itself.
Can anybody please suggest me how to work it out?
Thanks.
Vijita.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users