![]() |
|
|
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 |
| Expect Issue Serial Forground Execution vs Concurrent Background Execution | twk | Shell Programming and Scripting | 2 | 09-14-2009 09:27 PM |
| Script to carry-over the script execution to another system | yuvanash | Shell Programming and Scripting | 3 | 05-29-2009 01:51 AM |
| help on script execution | sussane | Shell Programming and Scripting | 8 | 01-13-2009 12:22 PM |
| time of execution of script | arghya_owen | Shell Programming and Scripting | 8 | 09-03-2008 04:32 AM |
| pb with script execution | Cecile | UNIX for Dummies Questions & Answers | 3 | 09-14-2006 11:37 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Script Execution Help Needed
Hi guys i have a script (takeconsole) as following
I have moved it to /usr/local/bin to make the execution of script simpler. below are the content of the file. When i run the file by typing "takeconsole" .it always ask for entering the IP address but when i run it by using ". takeconsole". it ask for entering the IP address only at first occurrence. How can establish 2 scenario by just typing "takeconsole" and not ". takeconsole". Code:
if [ -z "$DISPLAY" ] then echo "Please Enter IP address of your machine" read ipadd export DISPLAY="$ipadd:0.0" else echo display is already set fi Last edited by pludi; 3 Weeks Ago at 03:15 AM.. Reason: code tags, please... |
|
|||||
|
The value will be set when the user call to 'takeconsole' function from the prompt such as other script.
ok? |
| Bits Awarded / Charged to pogdorica for this Post | |||
| Date | User | Comment | Amount |
| 3 Weeks Ago | pinga123 | thanks. | 5 |
|
||||
|
Thanks for the useful suggestion brother.
---------- Post updated at 11:17 PM ---------- Previous update was at 07:39 AM ---------- How do i modify the script in future. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|