You will need to change the timezone on a job-by-job basis.
The TZ line should not be a line on its own in crontab, but it can be part of a normal line in crontab or be inside a script.
Quote:
Set TZ=Asia/Calcutta
The syntax you show for TZ is incorrect.
What do you get in a normal interactive session for:
What Operating System and version are you running?
What Shell are you running?
Is your server clock set in UTC with default timezone in /etc/TIMEZONE ?
It is often easier to use the cron on a server which runs in the target timezone to trigger jobs on the server which is in a different timezone.
Hi,
First post.
I have a script that I am having a little trouble with and I hope someone can help.
I will post the code for your input, but I want to read the lines of a file and use this as input to a command in a while loop...
#!/bin/sh
#
#
### Variables
MSG=/tmp/tmptest.txt... (7 Replies)
Hi,
I created some cron entries in one of the 4 zones in Solaris 10. Now I want to edit it and unable to find the crontab file
crontab -l gives : unable to open crontab file
/usr/spool/cron/crontabs doesn't have the crontab file
Hence, I did ifconfig -a and tried to login with the 3... (2 Replies)
Hi guys thanks for the help for my previous posts.Now i have a requirement that i download a XMl file which has UTC time stamp.I need to convert UTC time into Unix server timezone.
For ex if the time zone of unix server is CDT then i need to convert into CDT.whatever may be the system time... (5 Replies)
Hello,
On our Solaris 10 servers we have shared NIC interfaces. We have a program that is having issues talking to the all zones because they have the same MAC address.
Is there a way with zonecfg or ifconfig to change the MAC on the zones?
Other wise we need to rewire the servers and I don't... (4 Replies)
can some one help me out as it is showing 2 different time zones in global zone and nonglobal zone .In global zone it is showing in GMT while in nonglobal zone i it showing as PDT.
System in running with solaris 10 (3 Replies)
I have a cluster of two Solaris server (veritas cluster). one working and the other is standby
I am going to change the date on them , and am looking for a secure solution as it is giving an important service.
my opinion is that the active one doesn't need to be restarted (if I don't change the... (1 Reply)
Hi,
I'm new to shell script programming, I only have Java programming background.
I'm writing a shell script to do file synchronization between 2 machines that located at different time zone area. Both machine were set its time zone according to its geographical location (Eg: server is at... (1 Reply)