![]() |
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 |
| How to get the value in last command line argument??? | amit_oddey21 | Shell Programming and Scripting | 4 | 05-28-2008 07:40 AM |
| array as command line argument !!!! | spandu | UNIX for Dummies Questions & Answers | 2 | 02-21-2006 01:33 PM |
| repeating previous argument on command line? | hadarot | UNIX for Dummies Questions & Answers | 6 | 08-01-2005 02:41 AM |
| command line argument parsing | rmjoe | UNIX for Dummies Questions & Answers | 1 | 07-28-2005 03:39 PM |
| Passing the command line argument in a variable | rkumar28 | Shell Programming and Scripting | 1 | 05-26-2004 03:02 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
passing a command line argument
I have a shell script which does the encryption of a file where i am passing the file name as a command line argument,but later on the script waits on the screen to enter Y or N
what is the command i should be using on the shell script #!/bin/bash -x outfilename=file.out echo "**********************************" >> $outfilename 2>&1 cd encrypt_files/ "encrypt the file command" $1 read_line $2 ( does this work) HERE IT WAITS FOR ME TO ENTER Y/N how do i pass it here echo "*********************************" >> $outfilename 2>&1 |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|