The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 08-11-2008
zaxxon's Avatar
zaxxon zaxxon is online now Forum Staff  
Moderator
  
 

Join Date: Sep 2007
Location: Germany
Posts: 2,313
I am blind now... There are [ code ] and [ /code ] tags to help display code properly.

Quote:
cp: cannot set the permission bits on product/dms300/preproc/input/67/U080823050069OCC: No such file or directory
You should echo your variables and check if the paths etc. are correct, for example those two for your copy here:

Code:
cp $line $lindir

Also I recommend to use scp instead of rcp.

For the start of background processes from one machine, you could use ssh or rsh, better ssh
Also for killing them at once, you might use ssh again and something like:

Code:
ps -ef| grep myscript| awk 'NR > 1 {print $2}' | xargs kill

Make sure you only get the processes you want, ie. leave the xargs out for a moment and check it.