Question #277522 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/277522

RaiMan posted a new comment:
Ok, of course possible.

But this would work with run() also:

use
run("sed -i -e 1d /home/username/addresseip.txt")

the ' around 1d are not needed.
only parameters containing blanks have to be surrounded by "

like this then:
run('sed -i -e "1d" /home/username/addresseip.txt')

run has an additional option:
print RunTime.get().getLastCommandResult()

will print the stdout and stderr produce by the command.

e.g. for me: 
[info] runcmd: sed -i -e 1d /home/username/addresseip.txt 
*****error*****
sed: /home/username/addresseip.txt: No such file or directory

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to