Below shows my script:
Every 3 hours, the script will check and grab the content to an output file. What I get is everything on a specific date. I would wan to have an incremental output that generate only during that 3 hours. Thanks
Last edited by blowtorch; 08-01-2006 at 10:59 PM..
Reason: to put in code tags
Hello!
I'm using a perl script which calls the time and
date from a remote server using the line
/bin/date -
What is needed in this line to
reduce the output time
5 hours?
Thanks (2 Replies)
I am trying to write a script that will remove any line in 2 given text files
starting with '-'.
the output should be to the second file.
this is what I tried:
#!/bin/csh -f
cat $1 $2 | grep -v '^-' > $2
the problem is the after executing the script, file2 contains only the
lines from... (7 Replies)
Every day a new .zip file is uploaded to a folder and at mid-night the zip file is to be extracted into a /data/ folder, inside a date-named folder.
# This should extract the contents of a zip file into the /data/ folder into a date based folder
/usr/bin/unzip -a -o... (15 Replies)
Hi Frens,
I want to list some files from a directory, which contains "DONE" in their name, i am receiving files every minute. In this i want to list all the files which are newer than 6 hours but older than 3 hours, of current time
i dont want my list to contain the latest files which are ... (4 Replies)
This is Input - starts with Storage Group Name and ends with Shareable and the loop continues all I need is Storage group name and Alu numbers in the below output format requested.
Storage Group Name: abcd
Storage Group UID: 00:00:000:00:0:0:0
HBA/SP Pairs:
HBA UID ... (6 Replies)
Hi Guys,
Good day! I hope you could help me on this, I have a file that conatins output upon executing cat /var/log/messages, then what I want is to get the logs that has been generated only starting from 24-hours earlier at the time of actual execution of the script. Is this possible?
Best... (9 Replies)
Hi All,
Actually we want to know the command need to use if the difference between two files are null, then it should not send as mail. Oterwise it should send as mail alert.
Below for your reference,
# Email the spoolfile.
diff free_sp_new.log free_sp_old.log
if output of above... (1 Reply)
been messing around with linux for a few months...not too good yet. thinking about taking a class or something, this #### is hard.......anyway, im trying to make an output file using the input from a prompt. heres basically what i have now (random example)
echo -n "Please enter your name: "
read... (7 Replies)
Hi all,
I am trying to loop through the string contents of an array, to add it during the saving of the output files. I am trying this code to print each column and save it to unique file name, but it doesn't work. Thanks for any help.
fnam=(japan usa uk)
alldata.dat contained sample data... (1 Reply)