The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



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

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 01-29-2009
ruben.rodrigues ruben.rodrigues is offline
Registered User
  
 

Join Date: Jan 2009
Posts: 45
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!!
Maybe I can't use version to receive the command???
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
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:36 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0