![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| simple shell - how to get a parameter typed in a shell script | cmitulescu | Shell Programming and Scripting | 4 | 01-09-2009 08:45 PM |
| Help need to make a shell script run for ffmpeg vhook watermaking in shell | wingchun22 | Shell Programming and Scripting | 1 | 09-27-2008 07:52 AM |
| Linux Shell Question: how to print the shell script name ? | meili100 | UNIX for Dummies Questions & Answers | 3 | 07-01-2008 02:55 PM |
| How to Start a Shell as Login shell instead of ordinary shell | Sivaswami | Linux | 3 | 07-01-2008 02:52 PM |
| Difference between writing Unix Shell script and AIX Shell Scripts | haroonec | AIX | 0 | 04-12-2006 03:27 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
You can try ckyorn binary....
#!/usr/bin/ksh echo "test" VAR=`ckyorn -d y -p "Do want to process it"` if [ $answer = "y" -o $answer = "Y" ] then cat/etc/passwd who | who -l ps -e | wc -l fi ---------- Post updated at 11:32 AM ---------- Previous update was at 11:29 AM ---------- Sorry, small change #!/usr/bin/ksh answer=`ckyorn -d y -p "Do want to process it"` if [ $answer = "y" -o $answer = "Y" ] then cat/etc/passwd who | who -l ps -e | wc -l fi Use this if it fulfills your requriement |
|
||||
|
I post exact what I have Code:
echo "I will now continue to help" echo "Would you like to know some helpful information about your system" echo -n " Yes or No: " read answer if [ $answer = "y" -o $answer = "Y" ] then cat /etc/passwd | wc -l who | wc -l ps -e | wc -l |
|
|||||
|
Code:
echo "I will now continue to help" echo "Would you like to know some helpful information about your system" echo -n " Yes or No: " read answer if [ $answer = "y" -o $answer = "Y" ]; then wc -l < /etc/passwd who | wc -l ps -e | wc -l fi |
|
|||||
|
Hello!
In case you forgot to read the forum rules, here is quick copy. Quote:
The UNIX and Linux Forums |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|