[Openroad-users] Call System & Sed
gareth.2.edwards at bt.com
gareth.2.edwards at bt.com
Tue Nov 7 01:48:33 EST 2006
Yes, that worked a treat. Thanks Pete!
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>
_____
From: openroad-users-bounces at peerlessit.com
[mailto:openroad-users-bounces at peerlessit.com] On Behalf Of Pete
Rabjohns
Sent: Monday, November 06, 2006 2:08 PM
To: International OpenROAD Users
Subject: Re: [Openroad-users] Call System & Sed
Sorry, realised I could have been a little more explicit in the
advice. ;-)
Call system 'CMD /c sed -f c:\script.txt c:\PP.txt > c:\PPP.txt'
Type cmd /? Is you want to see more options.
Regards,
Pete
_____
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/4c5d2735/attachment.html
More information about the Openroad-users
mailing list