![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Create a file from within a script | lamano | Shell Programming and Scripting | 2 | 03-04-2009 04:31 PM |
| can we create a GUI by shall script | johnray31 | Shell Programming and Scripting | 1 | 07-24-2007 11:47 AM |
| create a text file in a script | n8575 | UNIX for Dummies Questions & Answers | 2 | 02-07-2006 12:38 PM |
| how do I create an ftp script | leonard905 | UNIX for Dummies Questions & Answers | 2 | 01-14-2005 06:25 AM |
| script to create tar file | ajrandrup | UNIX for Dummies Questions & Answers | 2 | 12-03-2003 01:06 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Create file in script
I am trying to create a new file(string) with todays date in a backup folder
string= `date '+%d%m%y'` find [a-z]* [0-9]* [A-Q]* /home/SMB-2000/* -print |cpio -ovm > /home/bkups/$string After excecuting I get the messege # ./b2 250208 ./b2: /home/bkups/: cannot create Where am i going wrong? |
|
||||
|
Remove the ">" in the cpio command:
Code:
find [a-z]* [0-9]* [A-Q]* /home/SMB-2000/* -print |cpio -ovm /home/bkups/$string I think I'm wrong, you don't use the -p option so the redirection is correct. Do you have write permission in the directories? Regards Last edited by Franklin52; 02-25-2008 at 03:54 PM.. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|