![]() |
|
|
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. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
RSH question
Is there a way to do an rsh from within a script and spans commands on multiple lines?
Ex. Code:
rsh $host <<EOF echo `hostname` EOF tcgetattr: Inappropriate ioctl for device ioctl I_FIND ttcompat: Inappropriate ioctl for device ./t.script: EOF: command not found At my old job we could do sql queries like this on KSH Code:
var=`sqlplus -s <<-EOF "query statement" exit; EOF` Last edited by bestbuyernc; 07-19-2005 at 07:51 PM.. |
|
||||
|
rsh and sql
Quote:
a similar code to mine doesnt work : vzs422:/in/tmp>su - linus rsh -l linus psmf 'sqlplus -s <<EOF > select * from tab; > exit; > EOF' OSF1 OSF1 End of linus's profile. ksh: sqlplus: not found Could you pls help ? |
![]() |
| Bookmarks |
| Tags |
| inappropriate ioctl for device |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|