10-13-2003
Very helpful
Perderabo's code was very helpful. I used it adn worked fine, except that my linux box was giving me errors on set and typset commands
, so I just took them out!
Thanks
Nitin
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am using this function to calculate yesterday's date and return it in the following format: Jan 09
date '+%b %d %Y' |
{
read MONTH DAY YEAR
DAY=`expr "$DAY" - 1`
case "$DAY" in
0)
MONTH=`expr "$MONTH" - 1`
case "$MONTH" in
... (4 Replies)
Discussion started by: ssmiths001
4 Replies
2. Shell Programming and Scripting
hi,
I have to ftp previous days file from a directory to another location. The name of the files are like "xxx20060225" (yyyymmdd format)
"xxx20060226"
ls -lrt xxx*| tail -2| head -1 will give me the file, but if i could get anything... (2 Replies)
Discussion started by: abey
2 Replies
3. Shell Programming and Scripting
Hi,
I am getting some very strange output when using date function in PERL on Solaris.
Infact the month portion is wrong and it is 1 less then the current, means today it is responding as
month =3 , andthis should be 4 ------> April
Any help
my code is
($day, $month, $year) =... (3 Replies)
Discussion started by: Asteroid
3 Replies
4. Shell Programming and Scripting
Hi,
My file format is:
E102,0,21-04-2007,0,2/25/1994,E003,A,125400,10450,60.2884620
E103,0,21/04/2007,0,2/2/1996,E003,A,125400,10450,60.2884620
E104,0,04/21/2007,0,2/2/1996,E003,A,125400,10450,60.2884620
E105,0,21-APR-2007,0,2/2/1996,E003,A,125400,10450,60.2884620... (1 Reply)
Discussion started by: charandevu
1 Replies
5. Shell Programming and Scripting
Hi,
My file format is:
E102,0,21-04-2007,0,2/25/1994,E003,A,125400,10450,60.2884620
E103,0,21/04/2007,0,2/2/1996,E003,A,125400,10450,60.2884620
E104,0,04/21/2007,0,2/2/1996,E003,A,125400,10450,60.2884620
E105,0,21-APR-2007,0,2/2/1996,E003,A,125400,10450,60.2884620... (1 Reply)
Discussion started by: charandevu
1 Replies
6. Web Development
hi,
how can i can pass the value of unixformat to date/time? and how can i retrieve the day/month/year from a date?
thanks a lot for your help
ps:i using php (1 Reply)
Discussion started by: jasonx22
1 Replies
7. UNIX for Advanced & Expert Users
:confused: Hi there.
Hi frndz,
I have to script a shell in such a way that by giving the current date, it should give the previous saturday date and next sunday date as output.
eg: Input - 01-01-2008
O/p -
last saturady- 30-12-2007(ddmmyy)
Next Sunday- 05-01-2008
... (14 Replies)
Discussion started by: psn123
14 Replies
8. UNIX for Advanced & Expert Users
Cal
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
cal | awk '{print $7}'
Sat
13
20
27
In the above output i am missing 6 because the first column is empty so it is shfting.
How... (3 Replies)
Discussion started by: ukatru
3 Replies
9. Shell Programming and Scripting
I read man page for etc/shadow field..
on the 8th field, i assume that's the field to change account expire date.
my question is:
What value does the 8th field keep? i assume it's 13514 instead of "Date" value such as 11/10/08.
on the man page, it said: " expire value = 13514 = jan 1,... (11 Replies)
Discussion started by: c00kie88
11 Replies
10. Shell Programming and Scripting
Hi ,
I am trying to create a function with below requirements
1. It will take two parameters as Input. Date and Date format
2. Output will be in YYYYMMDD format.
Example 1:
Input: fn_date_reformatter('01-AUG-2014','DD-MON-YYYY')
Output: 20140801
Example 2:
Input:... (4 Replies)
Discussion started by: Anupam_Halder
4 Replies
LEARN ABOUT PLAN9
securenet
SECURENET(8) System Manager's Manual SECURENET(8)
NAME
securenet - Digital Pathways SecureNet Key remote authentication box
DESCRIPTION
The SecureNet box is used to authenticate connections to Plan 9 from a foreign system such as a Unix machine or plain terminal. The box,
which looks like a calculator, performs DES encryption with a key held in its memory. Another copy of the key is kept on the authentica-
tion server. Each box is protected from unauthorized use by a four digit PIN.
When the system requires SecureNet authentication, it prompts with a numerical challenge. The response is compared to one generated with
the key stored on the authentication server. Respond as follows:
Turn on the box and enter your PIN at the EP prompt, followed by the ENT button. Enter the challenge at Ed prompt, again followed ENT.
Then type to Plan 9 the response generated by the box. If you make a mistake at any time, reset the box by pressing ON. The authentica-
tion server compares the response generated by the box to one computed internally. If they match, the user is accepted.
The box will lose its memory if given the wrong PIN five times in succession or if its batteries are removed.
To reprogram it, type a 4 at the E0 prompt.
At the E1 prompt, enter your key, which consists of eight three-digit octal numbers. While you are entering these digits, the box displays
a number ranging from 1 to 8 on the left side of the display. This number corresponds to the octal number you are entering, and changes
when you enter the first digit of the next number.
When you are done entering your key, press ENT twice.
At the E2 prompt, enter a PIN for the box.
After you confirm by retyping the PIN at the E3 prompt, you can use the box as normal.
You can change the PIN using the following procedure. First, turn on the box and enter your current PIN at the EP prompt. Press ENT three
times; this will return you to the EP prompt. Enter your PIN again, followed by ENT; you should see a Ed prompt with a - on the right side
of the display. Enter a 0 and press ENT. You should see the E2 prompt; follow the instructions above for entering a PIN.
The SecureNet box performs the same encryption as the netcrypt routine (see encrypt(2)). The entered challenge, a decimal number between 0
and 100000, is treated as a text string with trailing binary zero fill to 8 bytes. These 8 bytes are encrypted with the DES algorithm.
The first four bytes are printed on the display as hexadecimal numbers. However, when set up as described, the box does not print hexadec-
imal digits greater than 9. Instead, it prints a 2 for an A, B, or C, and a 3 for a D, E, or F. If a 5 rather than a 4 is entered at the
E0 print, the hexadecimal digits are printed. This is not recommended, as letters are too easily confused with digits on the SecureNet
display.
SEE ALSO
encrypt(2), auth(2)
Digital Pathways, Mountain View, California
BUGS
The box is too clumsy. If carried in a pocket, it can turn itself on and wear out the batteries.
SECURENET(8)