![]() |
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 |
| Problem with csh script | rahulrathod | Shell Programming and Scripting | 4 | 02-21-2008 12:38 PM |
| script problem | tdavenpo | Shell Programming and Scripting | 3 | 01-04-2006 04:07 PM |
| Problem starting a script from a 'main'-script | Rakker | UNIX for Dummies Questions & Answers | 3 | 06-28-2005 08:12 AM |
| problem with a script | Lestat | Shell Programming and Scripting | 4 | 06-13-2005 12:30 PM |
| problem with ftp script...please help | vancouver_joe | UNIX for Advanced & Expert Users | 2 | 11-22-2001 07:47 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
When I put this in my script, it didn't work right
# Change the ownership chown_command="" for tmp in $tempvar do chown_command="${chown_command}=chown $UID $tmp;" done for server3 in $list do ssh -q $id@$server3 "${chown_command}" echo "Changing ownership on $server3" echo " " done When it goes down the sever list, and comes to ssh -q $id@$server3 "${chown_command}" Instead of running the "${chown_command}" It just puts me at a prompt, I just want it to run the chown command! + chown_command= + ssh -q id@serverx d@serverx:~> accessid@serverx:~> accessid@serverx:~> exit logout + echo Changing ownership on x Changing ownership on x + echo If you see, in the bolded area, it makes me type exit - and it doesn't work. what's going on???? |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|