Computing.Net > Forums > Unix > script to move file

script to move file

Reply to Message Icon

Original Message
Name: george Zhou
Date: November 21, 2002 at 11:22:04 Pacific
Subject: script to move file
OS: win 98
CPU/Ram: PIII/256
Comment:

Would you please help me write a script to move file between dirs? I am new to unix. But I need this for my work. The script should check id and pw. thanks.


Report Offensive Message For Removal


Response Number 1
Name: David Perry
Date: November 21, 2002 at 19:12:21 Pacific
Subject: script to move file
Reply: (edit)

What sort of authentication check do you need? Are you talking about a suid script that assues super user authority to move files to directories owned by other users ?

@!/bin/sh
mv $1 $2
--------------
call the script with the first parameter being the file name and the second being the target directory.


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: script to move file

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software