Results 1 to 3 of 3

Thread: Shell Script Question

  1. #1
    Join Date
    Dec 2008
    Location
    Kennewick, Washington
    Beans
    168
    Distro
    Ubuntu 10.04 Lucid Lynx

    Shell Script Question

    I was wondering is there a way to run a shell script in the background?
    Avoid the Gates of Hell. Use Linux.

  2. #2
    Join Date
    Sep 2006
    Beans
    2,914

  3. #3
    Join Date
    Feb 2008
    Beans
    187
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Shell Script Question

    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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •