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
Shell Script Needed to Parse Results jroberson Shell Programming and Scripting 2 08-20-2008 11:20 AM
Using expect script in a shell script or vice versa nua7 Shell Programming and Scripting 0 07-18-2008 07:16 AM
Unexpected Results (at least I did not expect them) altamaha Shell Programming and Scripting 6 06-19-2008 09:43 AM
Need help with Expect and Shell script tonan Shell Programming and Scripting 1 04-10-2008 10:45 PM
sql query results in unix shell script skyineyes UNIX for Dummies Questions & Answers 1 06-20-2007 10:56 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 10-16-2008
kaltekar kaltekar is offline
Registered User
  
 

Join Date: Oct 2008
Posts: 7
Using Expect results in a Shell script

I am trying to write a shell script that launches an expect script and then use results of the expect script in the rest of the shell script.

The expect script is connecting to a remote host and looking up certian user info like UID and home directory. This part is working

I then want the shell script to use these results in test statement (if uid xxx exists the scp these files to their home)

How do I export the the results of the expect script to the shell script?

My TCL experiance is limited to getting the basic expect script working.
 

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 02:51 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