The UNIX and Linux Forums  

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
csh failing to call an 2 embedded csh script pollsizer Shell Programming and Scripting 1 06-07-2008 02:22 PM
Shell script - If---fi condition yog_chavan Shell Programming and Scripting 4 05-07-2008 10:46 AM
need help with test condition in shell script pieman8080 Shell Programming and Scripting 9 09-11-2006 06:20 PM
UNIX script failing .... khan1978 UNIX for Advanced & Expert Users 1 12-05-2005 01:28 PM
OR'ing condition in script vino Shell Programming and Scripting 9 04-21-2005 09:34 AM

Closed Thread
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
  #1 (permalink)  
Old 11-20-2007
rubionis rubionis is offline
Registered User
  
 

Join Date: Aug 2007
Posts: 18
Thanks everybody for your valuable inputs .

Quote:
I think that since ssh is non-interactive (not a controlling terminal) You can't have a terminal like session,

Yes, that explains everything. SSH session is non interactive, so I can't expect a TEST condition to work within that ssh session.

Quote:
Do You even get a prompt for answer to Your read statement?

Nope !

And I thought about having the TEST condition OUT of the ssh session,( where everything works fine ), but I was trying to avoid multiple logins to the machine, and it seems that there's no escape. (Well, you can export the public/private keys to have a passwordless login to other machines, but there are situations where you can't always do that).

Anyway, better knowing how the things are, than spending days trying to figure out why it doesn't work the way you expect it to work.
Closed Thread

Bookmarks

Tags
grep or, linux, ubuntu

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 01:22 AM.


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