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