LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 08-22-2010, 08:24 AM   #16
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405

Hi,

Glad to see that you where able to pinpoint the problem.

BTW: You could post the python script here. Maybe someone can help you out with that as well.

I'm not a python man myself, but could it be you are using variables that are only present when you have a login shell?

Hope this helps.
 
Old 08-22-2010, 09:30 AM   #17
mahmoodn
Member
 
Registered: May 2010
Posts: 427

Original Poster
Rep: Reputation: 16
Guys in the python mailing list are very quick. To run a python script I have to first change the directory and then call the python file:

Code:
#!/bin/sh
cd /home/mahmood/
python sendip.py
Thanks for your help
 
Old 08-22-2010, 09:30 AM   #18
mahmoodn
Member
 
Registered: May 2010
Posts: 427

Original Poster
Rep: Reputation: 16
Guys in the python mailing list are very quick. To run a python script I have to first change the directory and then call the python file:

Code:
#!/bin/sh
cd /home/mahmood/
python sendip.py
Thanks for your help
 
  


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
Running a mount script on login targettl Linux - Software 4 10-12-2009 07:19 PM
Is it possibel to halt script running at login to root? n3mbers Linux - Newbie 11 07-22-2009 07:25 PM
Bash script not running on shell login. uncle-c Linux - Newbie 8 02-21-2009 09:41 AM
Running Script Upon Login edwin11 Linux - Software 7 06-26-2006 04:24 AM
Running a script at user login? brucebearau Debian 1 01-19-2004 04:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 03:37 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