Search Results

Search: Posts Made By: dpouliot
5,678
Posted By dpouliot
/usr/bin/perl -i -pe 's/\015/\012/g'...
/usr/bin/perl -i -pe 's/\015/\012/g' "/Users/Shared/menu-items.txt"

error "invalid command name \"/usr/bin/perl\"
while executing
\"/usr/bin/perl -i -pe 's/\\015/\\012/g'...
5,678
Posted By dpouliot
I removed exec, so the line is now: perl -i...
I removed exec, so the line is now:

perl -i -pe 's/\015/\012/g' "/Users/Shared/menu-items.txt"

error "invalid command name \"perl\"
while executing...
5,678
Posted By dpouliot
exec perl in expect script yields "invalid command"
I'm trying to execute something like this:
exec perl -i -pe 's/\015/\012/g' '${file}'

in my expect script and I get:
error "invalid command name \"perl\".

however, if I run
perl -i -pe...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 10:49 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy