Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using exec with Perl

Status
Not open for further replies.

NetworkGhost

IS-IT--Management
Apr 12, 2005
1,324
US
When I use the following from CLI I have no problems.

exec perl -pi -e 's/\xbf//' file.txt

When try ing to call with exec using TCL I get no error but the result is nothing is performed.


set tmp [lindex $::argv 0]
exec perl -pi -e 's/\xbf//' $tmp


I have tried with the actual file name, tried several variations. Still cant get it to work. Any help would be appreciated. Thanks.




 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top