PDA

View Full Version : Shell Script Question



Tek-E
March 29th, 2009, 08:05 AM
I was wondering is there a way to run a shell script in the background?

ghostdog74
March 29th, 2009, 08:54 AM
use &

UbuKunubi
March 29th, 2009, 09:58 PM
I've been using Python to automate a Terminal script.

There are lots of examples out there, but what I find to work is:

f = os.popen("hcitool scan")#-----------Sends the command to the terminal
for i in f.readlines():#-----------------Step through the list of information

Hope this helps,
Ubu