How start a program in shell?

How start a program in shell?

Post by Walter Brivi » Thu, 05 Nov 1998 04:00:00



Do you know how is possible to start a program in shell in foreground, in
background
 
 
 

How start a program in shell?

Post by Gareth Looke » Thu, 05 Nov 1998 04:00:00



> Do you know how is possible to start a program in shell in foreground, in
> background

I think this is what you want;

  <program name> &

Gareth

 
 
 

How start a program in shell?

Post by Andrew Smallsha » Thu, 05 Nov 1998 04:00:00



> Do you know how is possible to start a program in shell in foreground, in
> background

Add a '&' to the end of the command line to run the program in the background.

Please, in future post related topics together, and if posting to both
comp.unix.shell and comp.unix.questions, then cross-post and not multiple-post.
That way I only have to read your message once.

--
Andrew Smallshaw

 
 
 

How start a program in shell?

Post by Tom Smit » Sat, 07 Nov 1998 04:00:00





> > Do you know how is possible to start a program in shell in foreground, in
> > background

> if you use the '&'-sign you can put a pgm in the backgroud.

Or, if you forget and just launch the program (which I do much more
frequently that I care to admit...), hitting ^Z (Ctrl-Z) will suspend
the most recently started program. Then type "bg" and hit enter. This
will restart the suspended program in the background and you can get on
back to work.

HTH,

Tom

--
-----------------

|-------------------------------------------------------|

| PSW Technologies      IBM RISC/System Graphics        |
| AIX GOS/PVT           Bldg 45, 2L-070, Austin, TX     |

|-------------------------------------------------------|

 
 
 

1. shell built ins

hi everyone,

i still try to get which done so that it knows about the shell built-ins
like exit etc...
i worked on it but still it won't run. i am pretty sure it is just a small
mistake. please help me out here.

thanks a lot
joyce

opath=$PATH
PATH=
($1 2> /dev/null ) && (echo 'built in shell' :exit 0)
echo x
PATH=/bin:/usr bin
case $# in
0)      echo 'Usage: which command' 1>&2; exit 2
esac
                for i in `echo $opath | sed  's/^:/.:/
                                                             s/::/:.:/g
                                                             s/:$/:./
                                                             s/:/ /g'`
do
                      if test -x $i/$1             # this is /bin/test
                          then                         # or /usr/bin/test
only
               echo $i/$1
               exit 0              # found it
      fi
done
exit 1                              #not found

2. C++ 3.0 static initializers invoke order on SunOS 4.x v. 5.3

3. PID of the program my shell script just started?

4. Linux shell problem

5. Shells and built-ins

6. Problems with ISDN

7. Can't start shell scripts by another program

8. IIS Admin on remote

9. !!Getting rid of auto start programs at start/Dialing up freeserve!!

10. Automatically starting program when GNOME starts

11. which file to start program on x start/login?

12. Start a program at X-Window start?

13. How to start a program when a Window Manager is started ?