I have a sever configured as a Netbackup Master server from where I manually expire tapes.
I use the following command to expire a tape:
Once I hit enter , it prompts me for a y or n:
I want to create a script that expires a certain amount of tapes. This script will run automatically using a cronjob.
How can I evade the input of 'y' all the time ? unless i do not type in y , it dosent progress.
Help.
how do I use a file (comma seperated) as an input for a script in bin/sh?
e.g.
I have a script that :
Input1=$1
Input2=$2
Input3=$3
Input4=$4
echo "$Input1, $Input2, $Input3,$Input4" (or some other function)
If I have a .csv file which lists many rows of input:
joe,5,john,10... (1 Reply)
/home/adw/a.ksh << EOF
a
b
EOF
This is how we give input to a file through script
Our client has done the coding in a different way :-
/home/adw/a.ksh << **
a
b
Can nybody pls tell me the significance of ** (7 Replies)
Hi all,
Here is my shell script
#!/bin/sh
echo "What is your name"
read name
echo "What is your surname"
read surname
echo "Your name is:${name} and your surname is:${surname}"
How can I modify this script so that I input those two variables from console?Lets say my name is "first"... (3 Replies)
All,
I am trying to figure out a script to run in windows that will allow me to match on First column in file1 to 8th Column in File2 then
Insert file1 column2 to file2 column4 then create a new file.
File1:
12345 Sam
12346 Bob
12347 Bill
File2:... (1 Reply)
Hi there.
I am trying to write a script that will be used to record actions. eg
# ./worklog -a "Peformed a memory upgrade on this box after we experiened a DIMM failure"
at which point the script will log to file called /var/worklog prepending the comment with the users name... (2 Replies)
hello,
I have one script A that requires to to press "q" manually to quit the script.
I am calling script A in another script B. Is there any way by which this "giving q manually" can be done inside script. and it does not require to gve it manually when using script B.
Thanks. (8 Replies)
Hi,
I am a newbie to scripting. I want to know something..Is there any way that I can do this?
Here is the thing.. there are so many printer queues in which i need to change a certain option.. am using the hppi utility and i need to modify the printer configuration individually going to each... (3 Replies)
Hello,
I'm trying to figure out how best to approach this script, and I have very little experience, so I could use all the help I can get. :wall:
I regularly need to delete files from many directories.
A file with the same name may exist any number of times in different subdirectories.... (3 Replies)
Hi,
#!/bin/bash
while ;
do
rm -f /tmp/pipe
mkfifo /tmp/pipe
./yuv4mpeg_to_v4l2 < /tmp/pipe &
mplayer tom_and_jerry.mp4 -vf scale=480:360 -vo yuv4mpeg:file=/tmp/pipe
sleep 65;
done
When I run this - after mplayer finishes playing video it says - Exiting... (End of... (2 Replies)
I need a script to pass the input to another script.
eg: I need a script to provide input to the sample script becuase my input value are constant.
$./sample.sh
PLease provide the comment:<input>
date:<date>
select the option:<1/2> (2 Replies)