![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Taking CEP to The Next Step | iBot | Complex Event Processing RSS News | 0 | 02-29-2008 06:40 PM |
| works step by step on command line but not in script | whamchaxed | Shell Programming and Scripting | 2 | 12-06-2007 07:47 AM |
| Step by step Installation of Unix SCO 2.1 | nensee7 | UNIX for Dummies Questions & Answers | 0 | 01-11-2007 09:22 AM |
| Next Step?? (Different Forum) Pls. help | radith | SuSE | 1 | 09-04-2004 09:19 AM |
| install of sco unix step by step | porikamu | UNIX for Dummies Questions & Answers | 1 | 05-27-2004 09:46 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Step by Step Script
Hello !!!
I´m really new at Unix and have to write a script to copy some files from some locations to another one. I need to be sure that each file has finished copied before starting to copy the other one. I believe unix returns the control to a script before the command really ends. my script is something like cp /u/test1/file1 /backup/file1 cp /x/test2/file2 /backup/file2 cp /y/test3/file3 /backup/file3 I´m running Solaris 2.8 bourne shell. Is there any way to ensure thet the second cp cpmmand starts after the first one really ends? TIA Lisandro |
|
||||
|
try this
I think that if you want to backup to a tape device, you'll need the tar command.
tar cvf(crete new job) /your_tape/device ./your_directory_to_be_copied_1 ./your_directory_to_be_copied_2 It worked for me... Jorge Ferreira |
|
||||
|
You mean check for every directory copied?
I used the other script because i didn't found any other way to do it. By the way, can you please tell me how can i do to "join" several directories to a backup job? Like this tar cvf /device ./First #This one always cvf tar ??? /device ./Second ... How does it return anything and how can i treat the variable? Best Regards Jorge Ferreira |
![]() |
| Bookmarks |
| Tags |
| solaris |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|