Search Results

Search: Posts Made By: nackstein
11,711
Posted By nackstein
you can put the wait in another loop: I...
you can put the wait in another loop:

I would do:

while read line ; do
nohup sh $line > $line.out 2>&1 &
echo $! > $line.pid
done

for f in $(ls *.pid) ; do
wait $(cat $f)
...
1,449
Posted By nackstein
your welcome, anyway if you need it in a pipe:...
your welcome,
anyway if you need it in a pipe:
{ printf 'your string single quoted is better' ; cat file2 ; } | sendmail-or-other-command

enjoy shell scripting :D

Please use code tags next...
1,449
Posted By nackstein
if you can put your string in a file (let's say...
if you can put your string in a file (let's say file1):
printf "your string" > file1
#or
echo -n "your string" > file1

then you can do:
cat file1 file2 > file3

does it help?

Please use...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 08:05 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy