[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
job control
From: |
Stuart Matheson |
Subject: |
job control |
Date: |
Wed, 2 Jul 2003 17:30:52 -0400 |
Hello,
I'm not sure this is a bug, but I'm unable to do simple job control from within
a bash script. But I can from the command line, for instance:
$ { sleep 10 & jobs -p; }
[1] 30672
30672
Works just fine but this script won't produce any output.
-------------------------
#!/bin/bash
sleep 10 &
jobs
-------------------------
I'm trying this with bash 2.05.1 on linux mandrake, I get the same results on a
solaris 2.5.1 machine with bash 2.03.0.
Any thoughts?
Stuart Matheson
- job control,
Stuart Matheson <=