![]() |
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 store contents of a command in array of variables in shell script? | netresearch | Shell Programming and Scripting | 3 | 01-26-2009 08:20 AM |
| trouble using read to store values in variables from command output | ProGrammar | UNIX for Dummies Questions & Answers | 2 | 01-09-2009 11:09 AM |
| problem with output of find command being input to basename command... | new_learner | UNIX for Dummies Questions & Answers | 2 | 12-14-2008 02:56 AM |
| how to store grep command in a Variable | madhusmita | Shell Programming and Scripting | 4 | 06-18-2008 07:58 AM |
| How to Store command O/P to a variable... | smartbuddy | UNIX for Dummies Questions & Answers | 7 | 08-24-2007 07:49 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Store command in a Var problem
Hi!
I strated to script since 1 month and I don't have much expirience but this thing here is strange I have a script where I want to store a svn command in a var to check it later so it's like this Code:
#!/bin/sh list=`ssh itadmin@192.168.1.200 "ls /home/svn"` # this stores the list of repositories and works fine projname=`zenity --entry --text "$list Enter the project name that you want to create "` # this ask to the user to insert the name of the project according to the list and works fine version= `ssh itadmin@192.168.1.200 "svnadmin verify /home/svn/$projname"` # this one, when I use the script in the terminal, it prompts me the right thing but it seams that the var version doesn't receive the content of the command echo "Project name: "$projname # here I do a echo just to confirme that the $projname is well stored echo "Version control revision: "$version # and here the echo shows the $version empty!! please help thanks Last edited by DukeNuke2; 01-29-2009 at 04:13 AM.. Reason: changed colors, light blue was bad to read... |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|