egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

problem with exec - [SOLVED]

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
SaPrOuZy
Halfop


Joined: 24 Mar 2004
Posts: 75
Location: Lebanon

PostPosted: Sun Jun 18, 2006 5:38 pm    Post subject: problem with exec - [SOLVED] Reply with quote

hi guys,
does anyone know when we use exec in which path it's considered?

to be clearer:
i have the following shell script:
Code:
#!/bin/sh
rm -f somePage.txt
wget --user-agent='"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)"' -k  -K -e robots=off  -O ~/eggdrop/scripts/somePage.txt www.somepage.com


if i execute this script from the shell, it works
when i use exec and run it from the bot, i get
Quote:
Tcl error [dl_page]: wget: not found

any idea why?

thanks.


Last edited by SaPrOuZy on Mon Jun 19, 2006 4:02 pm; edited 1 time in total
Back to top
View user's profile Send private message
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Mon Jun 19, 2006 3:10 am    Post subject: Reply with quote

my guess is that eggdrop sees another enviroment PATH. You can check it within the bot as 'set env(PATH)' and on sh/bash via 'export | grep PATH'. Alternately just use full paths Smile.
_________________
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
Back to top
View user's profile Send private message MSN Messenger
SaPrOuZy
Halfop


Joined: 24 Mar 2004
Posts: 75
Location: Lebanon

PostPosted: Mon Jun 19, 2006 4:01 pm    Post subject: Reply with quote

thx, i used wget's full path /usr/local/bin in my case.
works great Very Happy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
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


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber