NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Send tcsh foreach to background (fwd)



Hello again,

the little workaround by Patrick works well.

Thank you.

Bye,

Volker

Volker Wolfram
Dorndorf/Rhön, Germany
eMail: volker%volker-wolfram.de@localhost
WWW: www.volker-wolfram.de

On Wed, 17 Dec 2008, Patrick Welche wrote:

On Wed, Dec 17, 2008 at 09:34:07AM +0100, Volker Wolfram wrote:


Volker Wolfram
Dorndorf/Rhön, Germany
eMail: volker%volker-wolfram.de@localhost
WWW: www.volker-wolfram.de

---------- Forwarded message ----------
Date: Wed, 17 Dec 2008 09:14:53 +0100 (CET)
From: Volker Wolfram <volker%volker-wolfram.de@localhost>
To: users-netbsd%netbsd.org@localhost
Subject: Send tcsh foreach to background

Hello,

I'm new to the 'tcsh' and I tried to create a loop running in background.
I'm doing like this but it don't work:

foreach i (audio/music/band/album/*.mp3)
foreach? splay $i
foreach? end &

This runs only the first track. Whats wrong.

end is in the backgound (?!)

How about putting your commands in a script, and then tcsh script & ?
(Really you want splay $i &, but then lots of tracks will run at once
in the background...)

Cheers,

Patrick


Home | Main Index | Thread Index | Old Index