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
Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`" Lokesha UNIX for Dummies Questions & Answers 4 12-20-2007 01:52 AM
expect-5.43 and "passmass" stephanpitts Shell Programming and Scripting 0 12-04-2006 04:19 PM
How to REMOVE USER that display error --> "Name is too long" mgonzal AIX 1 06-27-2005 04:47 PM
"Arguments too long" Peterh UNIX for Dummies Questions & Answers 2 08-12-2003 08:07 AM
info on "expect" jyotipg UNIX for Dummies Questions & Answers 1 05-29-2002 04:04 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 04-14-2005
scriptosaurus scriptosaurus is offline
Registered User
  
 

Join Date: Apr 2005
Posts: 2
Long time since I used "expect"

Hello all,

It's been a few years since I touched 'expect' and just got it on my system.
In the past, I could simply do the following:
(this is just a simple example)
$ expect
$ ls -l
$ pwd
$ exit

...then a default script name would be placed in my working directory. At this point I could rename the file, edit it, etc... and when I felt the need to run the script I could:

$expect <filename>

When trying to use expect today, I'm able to do everything mentioned above, EXCEPT no default scriptname is placed in my working directory?? After 'exit', what happens? Am I forgetting to place an argument when running expect? Is the default script name being dumped somewhere else?

I'm running Solaris 2.9.
Expect ver = 5.25.0

Also, I only have access to the expect binary as it resides on an app-server and the man pages are not enabled.

Any help would be appreciated....Thanks!
  #2 (permalink)  
Old 04-14-2005
reborg's Avatar
reborg reborg is offline Forum Staff  
Administrator
  
 

Join Date: Mar 2005
Location: Ireland
Posts: 4,209
try autoexpect instead of expect as the first command.
  #3 (permalink)  
Old 04-14-2005
scriptosaurus scriptosaurus is offline
Registered User
  
 

Join Date: Apr 2005
Posts: 2
Thank you REBORG

Hello REBORG,

I knew I was forgetting something --> "auto"expect

Tried it and everything came back into my brain!!!

Thanks!
Closed Thread

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 07:30 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