Hi i have a case statement so when the user selects a differnent timezone the TZ value should change, so when another script generates a html page the when date is displayed the time corresponds to the timezone selected. I can't get the TZ to change when using a script but can change the TZ by inputting the code in the terminal:
Code:
echo "Timezone - Choose a Zone - GMT, Asia. "
read Time
case "$Time" in
GMT)
unset TZ
;;
Asia)
echo Time="export TZ='Asia/Kolkata'" >> config.sh
;;
*)
echo "Unknown Time Zone"
;;
esac
done
is this possible or what would be an alternative solution for the user to select a timezone from a case statement and change the time displayed via the date command?
I'm trying to figure out how to change the font or color of output in the middle of a shell script. I can't find anything that tells me how to do that. Any ideas? (1 Reply)
Hi Friends !
I want to change my current directory through a script.
I am running the script say, from /home/proj directory.
The script is like this :
#!/usr/bin/sh
cd module/pack/data
once i run the script, i am still in /home/proj directory only.
My problem is, i dont want to type... (5 Replies)
I am working on a script that checks two arguments at the command line. The first argument is a search pattern, the second can be a file or a directory, if it is a file a second script is called that checks it for the search pattern. If the second argument is a directory, it checks for the search... (5 Replies)
I am attempting to write a script where the user enters the month and day (two digit format). I am trying to have script will increase 6 more times (totaling 7). I am having issues with the script increasing by one (its either dropping off the lead zero or not increasing for 08 and 09). While... (8 Replies)
Hello,
We are running aix 5.3.
We're looking for a script that can change passwords, taking 2 arguments ( old password, new password ).
I am wondering if this can be done with a here document, or some generic scripting method.
Or, if I would have to download expect.
Alternatively I wonder... (3 Replies)
HI
I want to run a script as new process. for example, I have two script A and B. From A I am calling B, but When I do ps -ef for the script B the parent ID should not be A' ID.
Please help me
Thanks & Regards
Ramu (3 Replies)
We are real strict when it comes to passwords. Every 60 days the admins have to change passwords on all of the accounts. And there is pretty strict enforcement of the type of passwords chosen. This is a tedious and monotonous job. Ww don't use NIS or LDAP, so this has to be done on each machine. ... (5 Replies)
I have a problem, and I really need help with this. And I imagine that I will have to learn a new level of scripting to complete this. But I have over 5,000 pictures that are misnamed with the extension .jpg. They're not jpg, they're png, and it's extremely important that they're correctly filed. I... (3 Replies)
Discussion started by: Huitzilopochtli
3 Replies
LEARN ABOUT MINIX
tzselect
TZSELECT(1) Debian Timezone Configuration TZSELECT(1)NAME
tzselect - view timezones
SYNOPSIS
tzselect
DESCRIPTION
This manual page explains how you can use the tzselect utility to view the installed timezone. It comes handy when you want to know what
time it is in other countries, or if you just wonder what timezones exist.
tzselect is called without any parameters from the shell. It shows a list of about one dozen geographic areas one can roughly recognize as
continents. After choosing a geographic area by number, a list of countries and cities in this area will be shown.
You can press the Enter key to reprint the list. To choose a timezone, just press the number left to it. If your input is invalid, the
list will be reprinted.
You may press Ctrl-C to interrupt the script at any time.
Note that tzselect will not actually change the timezone for you. Use 'dpkg-reconfigure tzdata' to achieve this.
FILES
/usr/share/zoneinfo/
SEE ALSO hwclock(8)AUTHOR
Copyright 1998 Marcus Brinkmann <brinkmd@debian.org>
Please see nroff source for legal notice.
Debian 12 June 1998 TZSELECT(1)