09-11-2014
Hi,
Will the time be entered in minutes all the time, or will it be a mixture of hour minutes?
Regards
Dave
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi guys,
I want to input some variables from a file.
I tried it with following script,
for i in 1 2 3 4
do
read varible1 varible2 < ddd.txt
echo $varible1 $varible2
done ... (1 Reply)
Discussion started by: maheshsri
1 Replies
2. Shell Programming and Scripting
Hi,
I'm new to UNIX, at least shell programming and am having trouble figuring out a problem i'm having. In one section in my nested if statement, i want the program to test if the file does not exist, based on an argument supplied at the command line by the user. What i have is
elif ; then... (3 Replies)
Discussion started by: rowlf
3 Replies
3. Shell Programming and Scripting
Hey guys ,
i have a variable with the contents ...
NUMBER=4
and a test file with the contents
1248
1213
1214
1278
1200
3045
3444
2130
I want to execute a script that will produce the following output ( based on NUMBER=4) to be ...
create 1248 (1 Reply)
Discussion started by: theshams
1 Replies
4. Shell Programming and Scripting
Hi,
I would like to get a solution to this situation if possible. In a "for" loop how can I assign a value to a variable and then change the name of that variable depending on the loop iteration?
So what I am looking for is something like this in pseudo-code:
for i in 1 2 3 4
do
echo... (2 Replies)
Discussion started by: yonderboy
2 Replies
5. Shell Programming and Scripting
Hello,
I had written a shell script that accepts input file as cmd line argument and process this file.
if ; then
if ; then
. $1
LOGFILE="$LOG_FILE/MIG_BIOS.log";
get_input_file
else
ERROR_CODE=MSCRM0005_003
error "$ERROR_CODE : Input file $1 is not available";
exit... (3 Replies)
Discussion started by: Poonamol
3 Replies
6. Shell Programming and Scripting
I need to know how the the string constant from Input File should be read and provide as input data for the script .
INPUT FILE
CONST VARIABLE
myname=/root/dir/syslog/myname1
myname=/root/dir/syslog/myname2
myname=/root/dir/syslog/myname3
urname=/root/dir/syslog/urname1... (6 Replies)
Discussion started by: baraghun
6 Replies
7. Shell Programming and Scripting
ok im sorta stuck on this,
The user enters a car model and it has to check it in a text file in the current directory. If the car model is not in the file, user has to enter another model
This is what i have so far
read -p "Enter a car model: " car1
grep -w $car1=$(cat carMakes.txt)... (3 Replies)
Discussion started by: gangsta
3 Replies
8. Shell Programming and Scripting
Dear All ,
i stuck in one problem executing xml .. i have input xml as
<COMMAND name="ARRANGEMENT.WRITE" timestamp="0" so="initial">
<SVLOBJECT>
<LONG name="CSP_PMNT_ID" val="-1"/>
<MONEY name="CSP_CEILING" amount="0.0" currency="AUD"/>
... (6 Replies)
Discussion started by: arvindng
6 Replies
9. Shell Programming and Scripting
I would like some advice on some code.
I want to write a small script that will take an input file of this format
111222233334444555666661112222AAAA
2222333445556612323244455445454545
2334556345643534505435345353453453
(and so on)
It will be called as : script inputfile X (where X is... (5 Replies)
Discussion started by: onlyforbopi
5 Replies
10. Shell Programming and Scripting
I have a file that I'm trying to place into a variable.
I've tried the following:
DATE=`date +%Y%m%d`
filez=$(cat /tmp/Test_$DATE.txt)DATE=`date +%Y%m%d`
filez=$(</tmp/Test_$DATE.txt)DATE=`date +%Y%m%d`
filez=$(`cat /tmp/Test_$DATE.txt`)None of these lines allows the file to go into the... (3 Replies)
Discussion started by: newbie2010
3 Replies
LEARN ABOUT HPUX
timezone
timezone(5) File Formats Manual timezone(5)
NAME
timezone, dst - difference between Universal (Greenwich mean) time and Local time
VALUES
Default
A default value of indicates that the default value for the timezone tunable (420 minutes west of Greenwich, England ) is to be interpreted
as a daylight savings time value.
Allowed values
The value for the tunable should correspond to a defined time zone, and thus should be at least a multiple of 15 minutes. More commonly
the value will be a multiple of 60 or 30 minutes, corresponding to an hour or half-hour time zone.
The value of the tunable specifies if the time is with daylight savings or not. When the value is set to then the system is using daylight
savings time, and if it is set to the system is not.
Recommended values
Any allowed value is equally recommended. However, the chosen value should correspond to the time zone and daylight saving scheme of the
system site or to a time zone and daylight saving scheme which has meaning for applications or users.
DESCRIPTION
The tunable is the difference between Greenwich mean time (Universal Time) and local time, expressed as minutes west of Greenwich, England.
The tunable indicates whether the tunable is to be interpreted as a standard or daylight savings time value.
These tunables provide a way to convert between Grenwich Mean Time (or Universal Time) and local time. Although is a tunable, it is not
used to affect the behavior of the system. Rather, it is used to remember time zone information when the system is rebooted. This infor-
mation is returned by under HP-UX extensions. The tunable is independent of other methods of indicating time zones. For example, gets or
sets the time in either Universal or local time by using the environment variable. In this case the tunable has no effect. In general, it
is best to refer to the manpages for specific system calls such as and to check if there is a dependency on the tunable.
Who Is Expected to Change This Tunable?
Anyone.
Restrictions on Changing
Changes to these tunables take effect at the next reboot.
When Should the Value of This Tunable Be Changed?
These tunables may be changed to match the system's geographic time zone or the time zone of users.
What Other Tunable Values Should Be Changed at the Same Time?
The and tunables should always be set and interpreted as a pair of values.
WARNINGS
All HP-UX kernel tunable parameters are release specific. This parameter may be removed or have its meaning changed in future releases of
HP-UX.
Installation of optional kernel software, from HP or other vendors, may cause changes to tunable parameter values. After installation,
some tunable parameters may no longer be at the default or recommended values. For information about the effects of installation on tun-
able values, consult the documentation for the kernel software being installed. For information about optional kernel software that was
factory installed on your system, see at
AUTHOR
and were developed by HP.
Tunable Kernel Parameters timezone(5)