![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Obtaining Security Clearance | dangral | What's on Your Mind? | 6 | 02-03-2005 01:20 PM |
| Obtaining Process information on AIX | StuBob | High Level Programming | 0 | 01-05-2005 07:13 AM |
| Obtaining A Process ID (PID) | 1cuervo | UNIX for Advanced & Expert Users | 7 | 11-05-2001 12:36 AM |
| Obtaining IP address | Raael | IP Networking | 1 | 05-31-2001 02:12 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
obtaining a particular day
hello guys am totally new to this script programming so help me
i want to write a script that obtain a particular day and schedule a task that day at particular time .. my problem is i don't know to get time and particular day in script ... 2. how i ll print the time taken by executing a command in shell script #. how i ll check that letter is in small casr or in capital case plz let me know this thankx |
|
||||
|
Date stamp:
format: #!/bin/ksh DAY=`date +%y%m%d` When you echo $DAY, the output is 060726 When you want to add a TIMESONE to your DAY stamp, you will need to do the following: first, on command line type the command "date"...This will show you your time zone In you DAY string, change it to the following: DAY=`TZ=GMT date +%y%m%d` Now you can start playing around with the DAY parameter...You can go ahead a day or two, or backwards.... example: DAY=`TZ=GMT+24 date +%y%m%d` Output: 060725 The + will take you back....If you specify a -, it will take you forward... Regards Henk |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|