10 More Discussions You Might Find Interesting
1. AIX
Hello,
I was trying to run a script on a dev server using cron job. It supposed to run 3rd sunday of every month.
45 4 15-21 * 0 /home/user1/myscript.sh >/dev/null 2>&1 # run this script 3rd sunday of every month
When I Schedule it on AIX server, It is running every day at 4:45 AM.
am I... (3 Replies)
Discussion started by: Kumar7997
3 Replies
2. Shell Programming and Scripting
Does anybody know how to get previous day on UNIX AIX?
I tried
TZ=XYZ+24 date '+%y%m%d'
But it doesn't understand
Thanks for contribution (6 Replies)
Discussion started by: digioleg54
6 Replies
3. UNIX for Beginners Questions & Answers
Hi,
I tested this :
#!/bin/bash
set +x
CurrentDay=$(date +'%a') (Fri) on my server
Fri=$(date -d "Friday" | awk '{print $1}')
Sat=$(date -d "Saturday" | awk '{print $1}')
if ] ; then echo "ok" ; else echo "ok" ; fi
But the output tell me always "ok" why?! Thanks in advance :b: (5 Replies)
Discussion started by: Arnaudh78
5 Replies
4. Shell Programming and Scripting
Hi,
i am writing a ksh shell script to check the last month end date whether it is falling in last 10 week day date, I am not sure How to use "Mr. Perderabo's date calculator", Could you Please let me know how to use to get my requirement, I tried my own script but duplicate week day and... (5 Replies)
Discussion started by: karthikram
5 Replies
5. Shell Programming and Scripting
I am unable to get this KSH script to work. Can someone help. I've been told this should work with KSH93. Which I think I have on Solaris 10.
If I do a grep -i version /usr/dt/bin/dtksh I get
@(#)Version M-12/28/93d
@(#)Version 12/28/93
@(#)Version M-12/28/93
This is correct for... (5 Replies)
Discussion started by: thibodc
5 Replies
6. Shell Programming and Scripting
Hi,
Can any one help to find out the day for the given date in AIX. If we giving date as "YYYYMMDD" it should display its day.
eg:if the input is "20120103", expected output is "tuesday" :wall:
Pls help (7 Replies)
Discussion started by: novaothers
7 Replies
7. AIX
I have a ksh script that runs fine on Linux box but not on an AIX box. I am trying to determine what awk to use, using an "if" statement that says 'if today is Monday, do this else run the other awk statement'. here is my code...
if
then
awk -vD=$(date -d '3 days ago' '+%Y%m%d1700')... (3 Replies)
Discussion started by: bds052189
3 Replies
8. Shell Programming and Scripting
Hi friends,
I need some urgent help on Dates in unix.
I have a date say - "20080706", i need some command to display the day, here its sunday(06). Please help me out.
FYI: I use Ksh.
I/P - 20080706
O/P - Sunday (1 Reply)
Discussion started by: divzz
1 Replies
9. Shell Programming and Scripting
Hello guys it´s a pleasure to type with the unix community...I´m new in shell script and I need to insert into a #!/ksh a statment that will check if a file that I´ll receive from another script is arriving in the first working day of each month:
let´s say that I´ll reveive the following files... (1 Reply)
Discussion started by: Rafael.Buria
1 Replies
10. Shell Programming and Scripting
Hi all:
I am new to this board and UNIX programming so please forgive if I don't explain something correctly.
I am trying to write a script to keep track of our links, we link one program written for Client A to Client B's directory.
What we want to do is to keep track of our linked programs... (1 Reply)
Discussion started by: Smurtzy
1 Replies