•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Shell Scripting section within the Software Development category of DaniWeb, a massive community of 423,610 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,130 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Shell Scripting advertiser: Programming Forums
Views: 1367 | Replies: 16
![]() |
•
•
Join Date: Oct 2007
Posts: 271
Reputation:
Rep Power: 1
Solved Threads: 26
Hey there,
Even with the mod to the "if" line I posted afterward?
Thanks
Mike
Even with the mod to the "if" line I posted afterward?
Thanks
Mike
Linux and Unix Tips, Tricks and Individual Advice - The Linux and Unix Menagerie!
------------------------------------------------------------------------
Having trouble passing cert exams? Check out How To Pass Any Computer Certification Test!
------------------------------------------------------------------------
Having trouble passing cert exams? Check out How To Pass Any Computer Certification Test!
•
•
Join Date: Aug 2007
Posts: 39
Reputation:
Rep Power: 2
Solved Threads: 0
Still i am getting the same error--
>mt_clean -a mtBackup -l /intasmut2/kp -t now
>Backup directory already exists
>mt_clean starts Now
>Either option l or L should be given to mt_clean
>Usage: mt_clean [-a mtDelete/mtBackup] [-l/-L Backuplocation] [-t now/cron/hh:mm]
>mt_clean is terminated
but it should not do like this.
it should take the backup at the desired location.
>mt_clean -a mtBackup -l /intasmut2/kp -t now
>Backup directory already exists
>mt_clean starts Now
>Either option l or L should be given to mt_clean
>Usage: mt_clean [-a mtDelete/mtBackup] [-l/-L Backuplocation] [-t now/cron/hh:mm]
>mt_clean is terminated
but it should not do like this.
it should take the backup at the desired location.
•
•
Join Date: Aug 2007
Posts: 39
Reputation:
Rep Power: 2
Solved Threads: 0
I got the problem resolved for the issue.Actually in the script i was setting the flag to 1 at one more place so i removed that part.
Now the problem is coming for the delete part----
for deletion we ned not to specify any location,it will delete all the files at the default location.
when i ran the scaript as-
webmut2@france>mt_clean -a mtDelete
Either option l or L should be given to mt_clean
Usage: mt_clean [-a mtDelete/mtBackup] [-l/-L Backuplocation] [-t now/cron/hh:mm]
mt_clean is terminated
instaed of this it should delete the files at the default location,Help me in this please.
Thanks...
Now the problem is coming for the delete part----
for deletion we ned not to specify any location,it will delete all the files at the default location.
when i ran the scaript as-
webmut2@france>mt_clean -a mtDelete
Either option l or L should be given to mt_clean
Usage: mt_clean [-a mtDelete/mtBackup] [-l/-L Backuplocation] [-t now/cron/hh:mm]
mt_clean is terminated
instaed of this it should delete the files at the default location,Help me in this please.
Thanks...
•
•
Join Date: Oct 2007
Posts: 271
Reputation:
Rep Power: 1
Solved Threads: 26
Hey again,
Just in case there's a misunderstanding. When you say:
Does that mean that you get the error about the -l or -L options aren't being used?
and for:
Do you mean that it's still throwing an error even though you've passed your program the option?
Just curious. If you can answer that I don't see the issue, I'll run it the next time I get a terminal
Thanks
, Mike
Just in case there's a misunderstanding. When you say:
It is working for the option which i mentioned in the script- mt_clean -a mtBackup
Does that mean that you get the error about the -l or -L options aren't being used?
and for:
mt_clean -a mtbackup -lor -L /intasmut2/abc -t now/time it is not working
Do you mean that it's still throwing an error even though you've passed your program the option?
Just curious. If you can answer that I don't see the issue, I'll run it the next time I get a terminal
Thanks

, Mike
Last edited by eggi : Feb 19th, 2008 at 1:27 am. Reason: Text wrapping tags made quotes too hard to read
Linux and Unix Tips, Tricks and Individual Advice - The Linux and Unix Menagerie!
------------------------------------------------------------------------
Having trouble passing cert exams? Check out How To Pass Any Computer Certification Test!
------------------------------------------------------------------------
Having trouble passing cert exams? Check out How To Pass Any Computer Certification Test!
•
•
Join Date: Oct 2007
Posts: 271
Reputation:
Rep Power: 1
Solved Threads: 26
Hey There,
No problem at all. If you want/need any extra help, you can PM me with entire script (I think - not sure about size requirements on the site) and I'd be happy to look at it.
Best wishes
, Mike
No problem at all. If you want/need any extra help, you can PM me with entire script (I think - not sure about size requirements on the site) and I'd be happy to look at it.
Best wishes

, Mike
Linux and Unix Tips, Tricks and Individual Advice - The Linux and Unix Menagerie!
------------------------------------------------------------------------
Having trouble passing cert exams? Check out How To Pass Any Computer Certification Test!
------------------------------------------------------------------------
Having trouble passing cert exams? Check out How To Pass Any Computer Certification Test!
![]() |
•
•
•
•
•
•
•
•
DaniWeb Shell Scripting Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Other Threads in the Shell Scripting Forum
- Previous Thread: memory usage display
- Next Thread: Renaming files with awk/sed


Linear Mode