User Name Password Register
DaniWeb IT Discussion Community
All
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
Reply
Join Date: Oct 2007
Posts: 271
Reputation: eggi is on a distinguished road 
Rep Power: 1
Solved Threads: 26
eggi eggi is offline Offline
Posting Whiz in Training

Re: Urgent hep is required

  #11  
Feb 18th, 2008
Hey there,

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!
Reply With Quote  
Join Date: Aug 2007
Posts: 39
Reputation: namishtiwari is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
namishtiwari namishtiwari is offline Offline
Light Poster

Re: Urgent hep is required

  #12  
Feb 18th, 2008
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.
Reply With Quote  
Join Date: Aug 2007
Posts: 39
Reputation: namishtiwari is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
namishtiwari namishtiwari is offline Offline
Light Poster

Re: Urgent hep is required

  #13  
Feb 18th, 2008
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...
Reply With Quote  
Join Date: Aug 2007
Posts: 39
Reputation: namishtiwari is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
namishtiwari namishtiwari is offline Offline
Light Poster

Re: Urgent hep is required

  #14  
Feb 18th, 2008
I am able to resolve the problem,thanks guys for yourvalueable inputs,SPecial thanks to Mike who gave his time to me.

Thanks.
Reply With Quote  
Join Date: Oct 2007
Posts: 271
Reputation: eggi is on a distinguished road 
Rep Power: 1
Solved Threads: 26
eggi eggi is offline Offline
Posting Whiz in Training

Re: Urgent hep is required

  #15  
Feb 19th, 2008
Hey again,

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!
Reply With Quote  
Join Date: Aug 2007
Posts: 39
Reputation: namishtiwari is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
namishtiwari namishtiwari is offline Offline
Light Poster

Re: Urgent hep is required

  #16  
Feb 19th, 2008
Hi,

With little modifications,i was able to run the script as i wanted.Tha options which u mentioned is working perfectlly fine.Your help is a great support.Hope to discuss some issues again with you in near future.If u want the whole script i can attach it for you without any problem.

Thanks.
Reply With Quote  
Join Date: Oct 2007
Posts: 271
Reputation: eggi is on a distinguished road 
Rep Power: 1
Solved Threads: 26
eggi eggi is offline Offline
Posting Whiz in Training

Re: Urgent hep is required

  #17  
Feb 21st, 2008
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
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!
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Shell Scripting Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Other Threads in the Shell Scripting Forum

All times are GMT -4. The time now is 8:51 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC