![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| NIM Questions | tb0ne | AIX | 5 | 08-16-2007 07:23 AM |
| Few questions | gina | Shell Programming and Scripting | 2 | 05-28-2007 05:47 AM |
| A few questions... | halluc1nati0n | UNIX for Dummies Questions & Answers | 2 | 03-28-2007 10:29 AM |
| 3 questions in 1 | alikun | UNIX for Dummies Questions & Answers | 2 | 03-27-2007 02:59 AM |
| ftp questions | lewisoco | UNIX for Advanced & Expert Users | 5 | 10-27-2005 05:45 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
some questions...
hello. I'm fairly new to unix and have a few script writing questions for any experienced users. However, my computer is a mac so I need commands that will run in a macosx terminal.
ok: q1) im writing a script where I want to get the history in the terminal and then write it to a specific text file. I'm not sure how to do it. I tried: history | touch /dir/dir/dir/etc/filename can anyone tell me why it didnt work/what would be the right command/commands. q2)Im writing another script and I want the terminal to prompt the user for their password. I dont know how to collect user input or prompt them. Is it possible? All i can do is: echo 'password:' but thats not an input prompt and the [ownername] command ready thing is just gonna pop back up once the script is done executing and they wont enter a password near my input prompt. how do i actually make a input/prompt thing? q3)i have yet another script (lets call it script.sh). I want script.sh to execute when a user clicks on it rahter than them having to execute it with the ./ command in the terminal. How? Well those are my questions. Hopefully someone can answer them. Thanks alot. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|