[Openroad-users] Call System & Sed

Pete Rabjohns PRabjohns at uk.atex.com
Tue Nov 7 01:04:19 EST 2006


I think you may need to use the CMD command to run 'sed' because
redirection is handled by that? Just a hunch, but I've used it before to
capture output.

 

 

 

  _____  

From: openroad-users-bounces at peerlessit.com
[mailto:openroad-users-bounces at peerlessit.com] On Behalf Of
gareth.2.edwards at bt.com
Sent: 06 November 2006 12:35
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: gareth.2.edwards at bt.com <mailto:daryn.piper at bt.com> 

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


More information about the Openroad-users mailing list