06-07-2013
[Solved] Shell scripting
I am new to write scripts.
I want help to write a shell script to create 10 users and passwords to users.
Can any please help me.
Last edited by Scott; 06-07-2013 at 04:26 AM..
Reason: Changed from all uppercase.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
please give the difference between AIX shell scripting and Unix shell scripting. (2 Replies)
Discussion started by: haroonec
2 Replies
2. Shell Programming and Scripting
Hi
How to call a shell scripting through a Perl scripting? Actually I need some value from Shell scripting and passes in the Perl scripting. So how can i do this? (2 Replies)
Discussion started by: anupdas
2 Replies
3. Shell Programming and Scripting
So i have a file which contains paths to JPG images separated by a space.
I have to separate them each path to another file. So, I have to search all strings that start from /home/ and ends with .jpg or .png
Then write each one to another file...
Can you please help me on doing this???:cool: (11 Replies)
Discussion started by: hakermania
11 Replies
4. Shell Programming and Scripting
Hi,
#!/bin/ksh
result='/TIA/app/UniQP/queue/document/CSB'
i=0;
while ;
do
i=`expr $i + 1`
if ($i -lt 5);then
echo "THerrFile_$i.err";
else
break;
fi
done
... (0 Replies)
Discussion started by: sudhir_83k
0 Replies
5. Shell Programming and Scripting
I have shell script which will try to login to SQL Plus and retrieve some data, based on the outcome i will proceed further
Below is the content of the file
pebblz02% cat test1.ksh
#! /bin/ksh
dummyvar=`sqlplus -S csm_admin/csm_admin@SIDNAME <<EOF echo hi; exit; EOF`
Error message on... (0 Replies)
Discussion started by: kiranlalka
0 Replies
6. What is on Your Mind?
Gents,
I have been working in a Solaris/Unix environment for about 9 months. I took some linux classses online before getting the job. But, I am not very good at scripting. I want to learn how to script. Do you think that I should start with Shell scripting or Perl? I wanted to continue with... (2 Replies)
Discussion started by: Pouchie1
2 Replies
7. Web Development
i am going to study any one of the scripting languages mentioned above(shell 0r perl scripting) . Which is having more scope for a fresher? (1 Reply)
Discussion started by: Anna Hussie
1 Replies
8. Shell Programming and Scripting
Hi Friends,
Please help me with the following problem:
I have a text file with the following lines:
Dated: 8/11/2011
<br>
Time : 0000
<br>
==============
<br>
--------------------------------------<br>Data Upload Time =4:51:52... (2 Replies)
Discussion started by: anuajay1988
2 Replies
9. Shell Programming and Scripting
I plan to buy a shell scripting book.
Please suggest me a best book for shell Scripting. It will be great if the book contains more examples.
Regards
Kalai
---------- Post updated at 01:24 AM ---------- Previous update was at 01:09 AM ----------
I got the solution in the below post. (0 Replies)
Discussion started by: kalpeer
0 Replies
10. UNIX for Dummies Questions & Answers
Can any one please tell me where the error in below script. Output is not as per my requirement. if condition not comparing the result of record count of a file with 1. where is the pbm in my script? Appreciate your help..
#!/bin/ksh
#Module-
#Summary- To move the file to direcotries if... (9 Replies)
Discussion started by: shivadanam
9 Replies
MESG(1) Linux Programmer's Manual MESG(1)
NAME
mesg - display (do not display) messages from other users
SYNOPSIS
mesg [n|y]
DESCRIPTION
The mesg utility is invoked by a users to control write access others have to the terminal device associated with the standard error out-
put. If write access is allowed, then programs such as talk(1) and write(1) may display messages on the terminal.
Traditionally, write access is allowed by default. However, as users become more conscious of various security risks, there is a trend to
remove write access by default, at least for the primary login shell. To make sure your ttys are set the way you want them to be set, mesg
should be executed in your login scripts.
Options available:
n Disallows messages.
y Permits messages to be displayed.
If no arguments are given, mesg displays the present message status to the standard error output.
The mesg utility exits with one of the following values:
0 Messages are allowed.
1 Messages are not allowed.
>1 An error has occurred.
FILES
/dev/[pt]ty[pq]?
SEE ALSO
biff(1), talk(1), write(1), wall(1), login(1), xterm(1)
HISTORY
A mesg command appeared in Version 6 AT&T UNIX.
AVAILABILITY
The mesg command is part of the util-linux-ng package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng/.
Linux 1.2 10 March 1995 MESG(1)