10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
This works except the date being sent to this script.
Is it because I am trying to write to an executing script?
Is there a better way?
date '+%m-%d-%Y_%I:%M-%p'>> Send_Email.sh
CONTENT="Backup to Maxtor Drive has occured."
echo "Sending email."
/usr/sbin/ssmtp -t << EOF
To:... (1 Reply)
Discussion started by: drew77
1 Replies
2. Shell Programming and Scripting
Hi,
Seen below is a simple date script.
#! /bin/ksh
VL = `date +%m/%d`
VL1 = `TZ=GMT+24 date +%m/%d`
VL2 = `TZ=GMT+48 date +%m/%d`
VL3 = `TZ=GMT+72 date +%m/%d`
VL4 = `TZ=GMT+96 date +%m/%d`
VL5 = `TZ=GMT+120 date +%m/%d`
echo $VL
echo $VL1
echo $VL2
echo $VL3
echo $VL4
echo... (2 Replies)
Discussion started by: jayadanabalan
2 Replies
3. Shell Programming and Scripting
Help with Perl script :
I have a web.xml file with a line
<display-name>some_text_here</display-name>
Need to append the current date and time stamp to the string and save the XML file
Something like
<display-name>some_text_here._01_23_2014_03_56_33</display-name>
-->Finally want... (5 Replies)
Discussion started by: gaurav99
5 Replies
4. Shell Programming and Scripting
my $sysdate = strftime('%Y-%m-%d', localtime );
biDeriveByDate('Table_Str',$sysdate,\@lIndx,\@lResVals)
In a perl script, when I'm trying to pass $sysdate to some external function it's not working since $sysdate is passed as a string mentioned above but my function is expecting a date value... (1 Reply)
Discussion started by: Devesh5683
1 Replies
5. Shell Programming and Scripting
Hello,
I am running in to a problem running a perl script on a remote server.
I can run a simple script test.pl which contains just a print statment without issue by running
ssh root@1.2.3.4 perl test.pl
However, I have a more complex script that does not execute as expected. I think I... (3 Replies)
Discussion started by: colinireland
3 Replies
6. Shell Programming and Scripting
I have a perl script that automatically runs on Mondays.
I need to have it create a variable for last Monday's date thru that Sunday's date.
example: 04-01-2011 thru 04-08-2011
Its reporting numbers for the previous week beginning with Monday and ending on Sunday. So i dont have to go in... (7 Replies)
Discussion started by: bbraml
7 Replies
7. Shell Programming and Scripting
Hi,
I want to get the current date and time and subtract 1 day to get to the
previous day?
I see timelocal( ) and (time) etc.
How do I code this in PERL to get the previous day?
Thanks
Nurani (2 Replies)
Discussion started by: nurani
2 Replies
8. Shell Programming and Scripting
I'm Using this script to find the time of a file. I'm very much new to PERL
and found this script posted by some one on this forum.
It runs perfectly fine, just that it gives me following errors with the
accurate output as well. I jus want the output to be stored in another file
so that i can... (0 Replies)
Discussion started by: bankimmehta
0 Replies
9. Shell Programming and Scripting
Hi,
I have a script (a.pl) that can be run by anyone. The script internally has to read a file and write into few files which are owned by user 'myUser'.
Has to read the following file:
-rwx------ 1 myuser myuser 4986 Aug 20 18:11 my.file
Has to write into following files:
... (0 Replies)
Discussion started by: sarmakdvsr
0 Replies
10. Shell Programming and Scripting
I am writing a script that takes two parameters: the name of another script and an integer that represents a number of seconds. The script must execute the second script (first parameter) for the specified number of seconds (second parameter), suspend it for the same number of seconds, and continue... (9 Replies)
Discussion started by: ponchorage
9 Replies