[Openroad-users] Call System & Sed

White, Paul Paul.White at iasbet.com
Tue Nov 7 00:21:20 EST 2006


Maybe put it in a dos script?
call system 'c:\mycmd.bat c:\script.txt c:\pp.txt c:\ppp.txt'
 
c:\mycmd.bat
sed -f %1 %2 > %3
 
 
 

-----Original Message-----
From: openroad-users-bounces at peerlessit.com
[mailto:openroad-users-bounces at peerlessit.com]On Behalf Of
gareth.2.edwards at bt.com
Sent: Monday, November 06, 2006 11:35 PM
To: openroad-users at peerlessit.com
Subject: [Openroad-users] Call System & Sed


OR4.1 SP3, Win2000
 
Hi All,
 
I've got Monday morning blues; I'm running a call system command to execute
a sed script against a file:
 
CALL SYSTEM 'sed -f c:\script.txt c:\PP.txt > c:\PPP.txt';
 
The above works fine in a seperate command window. 
 
The problem i am getting is that it will not redirect the output. Now i've
tried everything i can possibly think of. (Checked redirects work in call
system): CALL SYSTEM 'dir c:\ > fred';
 
I've attached a screenshot of the cmd window that pops up, can clearly see
the sed script running, but not producing the output file.
 
Is it me or does this not work? What am i missing??
 
 
 

Cheers, 
Gareth Edwards 

BT Global Services 
tel: +44 (0)131 345 4671 
email:  <mailto:daryn.piper at bt.com> gareth.2.edwards at bt.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://peerlessit.com/pipermail/openroad-users/attachments/20061107/9caea354/attachment.html 


More information about the Openroad-users mailing list