Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 21 May 2013, 06:56
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
How to run Puppy from CLI in a particular directory?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [4 Posts]  
Author Message
jsl06

Joined: 02 Mar 2012
Posts: 9

PostPosted: Wed 04 Apr 2012, 06:21    Post subject:  How to run Puppy from CLI in a particular directory?  

I use the cli mostly. My scripts are all in a directory named, scripts. It would be less trouble if I did not have to type scripts in my commands. I have tried including /root/scripts in the path sentence of /etc/profile, but it did not seem to make any difference. How can I change puppy to allow this? Thanks for any help.
Back to top
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 9844
Location: Arizona USA

PostPosted: Wed 04 Apr 2012, 10:53    Post subject:  

I don't use the CLI much, so this is probably a dumb question. Just to get the discussion going, can't you cd to /scripts so that all the commands refer to the /scripts directory?
Back to top
View user's profile Send private message 
rokytnji


Joined: 20 Jan 2009
Posts: 743
Location: Pecos/ Texas

PostPosted: Wed 04 Apr 2012, 17:02    Post subject:  

In case I am understanding the question.

Quote:
Shell and Search
ROX-Filer provides a pretty handy Shell function. To access a command prompt just press Shift+1.
Here you can type in any command, btw the command will always be executed in the directory you've opened right now!
Next is the search function.
To get to the Search function, open the Filer, right click-> Next Click-> Find.
The search option is pretty advanced, you can search and filter Files and Directories after lots of criterias, consult the Documentation for more infos on that topic


from

http://forums.linuxmint.com/viewtopic.php?p=209088&sid=fa10d4c26ac393fc5f0d58a7874c811e#p209088
Back to top
View user's profile Send private message Visit poster's website 
SFR


Joined: 26 Oct 2011
Posts: 570

PostPosted: Wed 04 Apr 2012, 17:56    Post subject:  

Code:
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/X11R7/bin:/root/my-applications/bin:/root/scripts"

I have added /root/scripts to /etc/profile as shown above, restarted Puppy and now scripts from /root/scripts are accessible without specifying the full path.
(That's what you'd like to achieve, am I right?)
No idea why it doesn't work in your case... Confused
I'm using Lucid Puppy, by the way.

Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [4 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0465s ][ Queries: 11 (0.0084s) ][ GZIP on ]