LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 09-29-2007, 01:15 AM   #1
Bob Jones
Member
 
Registered: Mar 2007
Posts: 32

Rep: Reputation: 15
Running script (probably python)


I am trying to run a script from the python cookbook - it can be found here:

http://aspn.activestate.com/ASPN/Coo.../Recipe/496790

I am running Fedora Core 6; kernel 2.6.22.4-45.fc6. I got a copy of the script and saved it to my computer, but I do not have the directory named in teh file:

/usr/local/bin/python

Does anyone know how to set up and run the script so the program runs automatically . . . even if I am not at home?

Much appreciated.

BJ.
 
Old 09-29-2007, 01:20 AM   #2
Bob Jones
Member
 
Registered: Mar 2007
Posts: 32

Original Poster
Rep: Reputation: 15
This is the error that I get when I run:

! python filename

[root@localhost checkin]# ! python southwest
Traceback (most recent call last):
File "southwest", line 509, in ?
main()
File "southwest", line 444, in main
departure = getFlightTimes(retrieve_url, confirmation, firstname, lastname)
File "southwest", line 289, in getFlightTimes
to_arrive_time = ts[1]
IndexError: list index out of range
[root@localhost checkin]#

Any suggestions? Is this an error with the code?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Running Python Script in UBUNTU Session Manager warnetgm Linux - Newbie 2 12-06-2006 03:08 PM
Python program not running from cron spiri Linux - Software 7 03-09-2006 02:02 AM
python cgi script and premature end of script headers Neruocomp Programming 1 07-28-2005 11:43 AM
Running from Python a browser fiomba Linux - Software 0 11-19-2004 01:24 PM
python script LinuxLala Programming 14 04-07-2004 06:19 AM


All times are GMT -5. The time now is 06:17 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration