10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I was trying to format my number like i=1 to 000001 using the below method.
typeset -Z6 i (sorry, corrected)
My shell is K, is not doing, it is supposed to do
Thanks in advance (6 Replies)
Discussion started by: ezee
6 Replies
2. Solaris
:wall:i want to create a user in solaris whose password expires after every 30 minutes and he has to change his password after evry thirty minutes.How can we do that?:confused:
thanx and regards,
shekhar (17 Replies)
Discussion started by: shekhar_4_u
17 Replies
3. UNIX for Advanced & Expert Users
Good day all.
I'm trying to add a user with useradd and the -p option to assign a project name, but the result is that the user is created with an error message: "UX: useradd: user.root name should be all lower case or numeric."
The command:
useradd -d /export/home/tester -g rtpgrp -G... (2 Replies)
Discussion started by: BRH
2 Replies
4. Shell Programming and Scripting
Hi
actually what happen i have taken a value from database table and stored in variable and that value is 20100601 000000 but this value is stored as string value in database table so
after storing this value in variable a when i did operation on this a variable like
a=`expr ${a} +1`
i m... (1 Reply)
Discussion started by: aishsimplesweet
1 Replies
5. Shell Programming and Scripting
Hello folks
I Hope everyone is fine. I am calculating number of bytes calculation from apache web log.
awk '{ sum += $10 } END { print sum }' /var/httpd/log/mydomain.log
7.45557e+09
it show above number, what should i do it sow number like 7455, i mean if after decimal point above 5 it... (5 Replies)
Discussion started by: learnbash
5 Replies
6. Shell Programming and Scripting
Hi. I have a problem with my homework. I have to do a Script that will tell me the number of users that are logged in on my system through a network and find out their IP's.
Can you give me an idea?
Thanks (1 Reply)
Discussion started by: mitzu
1 Replies
7. UNIX for Dummies Questions & Answers
Hello all
I am having problems using a bash script to read the input from the user and checking that its a valid number. I only want the user to input a maximum of a 3 number string (321 , 521 , 871 etc.). Anything longer or that includes a chararcter or symbol will display an error message.
... (8 Replies)
Discussion started by: ChrisHoogie
8 Replies
8. Shell Programming and Scripting
hi guys im a newbie at scripting and am writhing a basic phone dir script to teach myself scripting now the problem i have is i need to make sure the tel number entered to the script is only 8 digits and the first number is not a zero. to use the script i do this ./dir.sh "name" 12345678 can... (3 Replies)
Discussion started by: zappedback
3 Replies
9. Programming
I have string named texts which consist of section label “BOOK-SEC-“. Section starts from 1 to n, where n is a number. For this example conside the value of n is 9. That is, the string variable looks like
“BOOK-SEC-1... (2 Replies)
Discussion started by: SamRoj
2 Replies
10. Solaris
O/S: Solaris 9
Architecture: SPARC
The man page for useradd states, "The new login remains locked until the passwd(1) command is executed."
This is a problem for me when accessing remotely via SSH and creating a new account from the console with useradd. As soon as I try to login into the... (3 Replies)
Discussion started by: tuxsun1
3 Replies