Sunday, 15 February 2015

linux - for loop - execute file every 2 hr, output--> ssh "new server" execute output command -


Text after "div class =" itemprop = "text">

The script below I use to collect the tape collections. It will take 2 hours for each file to be archived

In this case I will have to keep the sleep time in all files for 2 hours. And they should do SSH on the server according to the input and should start output command to collect the archive. Once 2 hours should be for the next file to complete and start implementing

/ root / scripts / directory (file)

  / data / DataToTape / JAN_1991 / / data / DataToTape / JAN_l992 / / data / DataToTape / JAN_l993 / / data / DataToTape / JAN_l994 / / data / DataToTape / JAN_l995 / / data / DataToTape / JAN_l996 / / data / DataToTape / JAN_1997 /  

just can not help it I tried but --------------

  # / bin / bash echo "Please bedtime Enter: "Read the Sleep Echo" Please login to take the server server collection A. "I $ (cat / root / scripts / directory) PATH = $ I output = read $ Server (Dsmc ARCH $ path -subdir = yes & Gt Nohup; / TSM / Backuplogs / ($ Basename $ path) _ \` date% d% m% y_% H_% M \ 'log & amp;) ssh is "$ server $ production"  

you need" for "the loop" do "this will fix the problem in the comments:

  $ i (cat / root / Script / list);  

No comments:

Post a Comment