LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-07-2006, 07:04 PM   #1
bluelite28
LQ Newbie
 
Registered: Jun 2006
Posts: 14

Rep: Reputation: 0
help on compiling a file written in expect


Okay, my question is how do you compile a file written in expect? So far I've tried this command..

./filename.sh

and recieved "Permission Denied" even while logged in as root.

thanks,
-bluelite28-
 
Old 06-07-2006, 07:22 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Hi, and welcome to LQ!

You don't compile expect scripts. To be able to run them like this you
just need to flag them as executable to the OS.

chmod u+x ./filename.sh


Cheers,
Tink
 
Old 06-27-2006, 01:08 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
by definition a file called something.sh is a shell script, an expect script is very different, so shouldn't have .sh on the end. expect files are normally .exp.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
expect - read passphrase from a file hk_linux Programming 2 03-01-2018 02:34 AM
reading file written by shell using C kapil_dev Programming 9 09-10-2005 12:11 AM
where does openssl expect the config file rblampain Linux - Security 4 08-12-2005 09:11 AM
How to get last file written to directory kd5giv Linux - Networking 4 03-29-2004 02:26 PM
File Manager SU mode using expect Allen614 Programming 0 02-26-2003 01:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration