Re: Execute all processes in the background from bash.
From: Kevin Collins (spamtotrash_at_toomuchfiction.com)
Date: 05/20/04
- Next message: William Park: "Re: Bash, readline, initial mode with vi line-editing"
- Previous message: Doug Freyburger: "Re: Execute all processes in the background from bash."
- In reply to: Doug Freyburger: "Re: Execute all processes in the background from bash."
- Next in thread: Chris F.A. Johnson: "Re: Execute all processes in the background from bash."
- Reply: Chris F.A. Johnson: "Re: Execute all processes in the background from bash."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 20 May 2004 16:52:49 GMT
In article <7960d3ee.0405200757.2b49b50f@posting.google.com>, Doug Freyburger
wrote:
> Ed Morton wrote:
>> Doug Freyburger wrote:
>>
>> > When I intend to run a command very often, I write a small script
>> > and name it "x" somewhere in my path. It would be something like:
>>
>> > #! /bin/bash
>> > time ${1} &
>>
>> You might want to make the above:
>> time "$@" &
>> so you capture arguments.
>
> Good point.
>
>> > exit
>>
>> No need for the exit.
>
> True but there isn't necessarily need for the magic number in the first
> line, either. I put them into all of my scripts for cleanliness reasons.
I assume you mean the "shebang" entry (#!/bin/bash)? If so, there is a need for
it, unless you want all your scripts to run as /bin/sh, which you probably
don't. :)
Kevin
- Next message: William Park: "Re: Bash, readline, initial mode with vi line-editing"
- Previous message: Doug Freyburger: "Re: Execute all processes in the background from bash."
- In reply to: Doug Freyburger: "Re: Execute all processes in the background from bash."
- Next in thread: Chris F.A. Johnson: "Re: Execute all processes in the background from bash."
- Reply: Chris F.A. Johnson: "Re: Execute all processes in the background from bash."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|