LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-24-2010, 06:42 AM   #1
njb
Member
 
Registered: Apr 2010
Location: Behind the Gateway
Distribution: Slackware 13.1
Posts: 167
Blog Entries: 4

Rep: Reputation: 16
Talking Default PATH


I have just installed SABnzb application in my home folder.
The executable file is SABnzb.py
When I run the command in the Konsole
# python SABnzb.py
I have this
Quote:
python: can't open file 'SABnzbd.py': [Errno 2] No such file or directory
NjB
 
Old 11-24-2010, 06:50 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Try to give the whole path to the file.
Or add the directory containing the file to your path
make sure the file is executable.

Kind regards

Last edited by repo; 11-24-2010 at 06:57 AM.
 
Old 11-24-2010, 07:27 AM   #3
njb
Member
 
Registered: Apr 2010
Location: Behind the Gateway
Distribution: Slackware 13.1
Posts: 167

Original Poster
Blog Entries: 4

Rep: Reputation: 16
Talking But where is my path ?

Quote:
Or add the directory containing the file to your path
But where is my path ?

NjB
 
Old 11-24-2010, 07:40 AM   #4
manwichmakesameal
Member
 
Registered: Aug 2006
Distribution: Slackware
Posts: 804

Rep: Reputation: 110Reputation: 110
You can copy /etc/profile to ~/.profile and edit your path, or you can set up a ~/.bashrc and put your path in there. You can add something like:
Code:
PATH=${PATH}:/path/to/your/bin/directory
to it.
 
Old 11-24-2010, 08:05 AM   #5
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,090

Rep: Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173
Code:
echo $PATH
to see how it's set system wide have a look in /etc/profile and /etc/profile.d/*
try also launching
Code:
set
with no arguments (man set).

Last edited by ponce; 11-24-2010 at 08:08 AM.
 
Old 11-24-2010, 09:12 AM   #6
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Quote:
Originally Posted by ponce View Post
Code:
echo $PATH
to see how it's set system wide have a look in /etc/profile and /etc/profile.d/*
try also launching
Code:
set
with no arguments (man set).
man set documents the Tcl set command on my system. help set documents the bash builtin set.
 
  


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
Default Path combilli Linux - Software 3 01-24-2007 11:15 AM
default path for OpenOffice? mcd Mandriva 1 05-29-2004 06:37 AM
How to edit default PATH? davidas Linux - Newbie 2 03-20-2004 05:34 AM
Default PATH Itsu Linux - Software 5 01-30-2004 07:27 AM
Default path log Linux - Newbie 1 01-13-2003 09:13 AM

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

All times are GMT -5. The time now is 05:43 AM.

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