10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I am logged in to my unix box with functional id user1.
myhost://home/user1> id
uid=3748157(user1) gid=238(dev)
I am trying to execute a script hello.sh with user1 and I am passing a PID to hello.sh.
./hello.sh 145633
This pid <145633> is running with user7.
Thus, I need to... (1 Reply)
Discussion started by: mohtashims
1 Replies
2. Shell Programming and Scripting
Hi,
I need my script to check if the user enters 3 values if not 5 values to my script and alert if the input has any other number of values.
for example:
./myscript.sh 22 56 3221 - > correct
./myscript.sh 22 56 3221 45 777 -> correct
./myscript.sh 22 56 3221 45 -> incorrect
Please... (6 Replies)
Discussion started by: mohtashims
6 Replies
3. Shell Programming and Scripting
Hello Unix scripters,
I have created a small tool that i can distribute to users to check whether they have passwordless login to a list of servers.
The problem in my code below is if user do not have the passwordless login yet, it will prompt them with a password login and my message below... (2 Replies)
Discussion started by: ryandegreat25
2 Replies
4. Homework & Coursework Questions
i have some question
for example:
suppose we have the Public folder as follows:
https://www.unix.com/attachments/shell-programming-scripting/2759d1334070669-check-permissions-linux-user-capture.png
If user enter:
-Kenshin
or /home/kenshin/Public
output:
abc: kenshin: rw
my shell:... (1 Reply)
Discussion started by: kingkner
1 Replies
5. Shell Programming and Scripting
i have some question
for example:
suppose we have the Public folder as follows:
https://www.unix.com/attachment.php?attachmentid=2759&stc=1&d=1334070669
If the user enter:
-Kenshin
or /home/kenshin/Public
output: abc: kenshin: rw
my shell:
echo "Enter User:"
read user ... (3 Replies)
Discussion started by: kingkner
3 Replies
6. Homework & Coursework Questions
I was given this to do,
Write a Shell script to automatically check that a specified user is logged in to the computer.
The program should allow the person running the script to specify the name of the user to be checked, the frequency in seconds at which the script should check. If a... (0 Replies)
Discussion started by: operator
0 Replies
7. UNIX for Advanced & Expert Users
How do check the programs that the actual user of the computer installed. I do not care at all about the default programs that came with your distro of Linux, I only want the user installed programs. (1 Reply)
Discussion started by: cokedude
1 Replies
8. UNIX for Dummies Questions & Answers
Hello everybody!!!
I am writing my own rm command in unix.
I prompt the user to type if he wants to delete a file and then read what he typed.
But how do i check what he typed?
This is my program so far:
echo 'Delete prog1.c (y/n)?'
read yesOrNo
if yesOrNo == 'y'
then
rm prog1.c... (6 Replies)
Discussion started by: mskart
6 Replies
9. UNIX for Advanced & Expert Users
Hi all,
While watching the log at /var/log/messages on a Centos 4.x box I keep seeing this come up
Jul 18 09:38:40 ws096 PAM_pwdb: check pass; user unknown
From what I understand this might be a ssh attack or am I wrong here?
The bad thing is that it does not show an IP address its... (1 Reply)
Discussion started by: mcraul
1 Replies
10. Shell Programming and Scripting
how can I check mail quota, and then how can I send mail to user whose quota get full??? :confused:
For this which script must I use? (8 Replies)
Discussion started by: emreatlier
8 Replies