![]() |
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 |
| Passing string variables | pxy2d1 | Shell Programming and Scripting | 11 | 08-11-2008 01:32 PM |
| Advice on passing SCSA exam needed | brianbullard | SUN Solaris | 2 | 09-19-2007 10:04 PM |
| Passing string from function with '*' | zam | Shell Programming and Scripting | 2 | 06-20-2007 04:19 AM |
| Help needed in string manipulation | haifrancis | Shell Programming and Scripting | 4 | 09-08-2006 08:21 AM |
| Passing a string parameter to a function | fastgoon | Shell Programming and Scripting | 1 | 07-17-2006 02:37 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Help needed passing string to command
hi to all
code: </div> command... "command_name arg1 arg2 option=xxxxx" example --- useradd username group=xxxxxx. </div> when someone ran this command it point to some other script (say script1), mean post execution of command. in the script1 i need only "xxxxx" value. then i differentiate using case statement. anyone have idea how to pass value to the script. thanks |
|
||||
|
hi to all
the below is the command.......... # nu user=xxx os=unix pgroup=xxxxx i used below line to get the pgroup name. --> PGRP=$(echo "$@" |cut -f2 -d'=') if the user use the pgroup option the above syntax works fine. if the user don't use the pgroup option the above syntax is failing. if they don't use the pgroup option it should go to default set. any suggestions.... thanks |
| Sponsored Links | ||
|
|