Can a Bourn Shell Script put itself in the background?

relay.lists at gmail.com relay.lists at gmail.com
Fri Jun 5 22:41:46 UTC 2009




=================
#!/bin/bash

# This script will sleep 
# 50 times for 1 second in
# the background


  main()
  {
    for ((i=0 ; i<=50 ;i++)) 
    do
      sleep 1
      let i++
    done
  }

  main &

# EOF
==================



-- 
Best regards,
Daniel


More information about the freebsd-questions mailing list