This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

possible?

Old posts that have not been replied to for several years.
Locked
User avatar
Papillon
Owner
Posts: 724
Joined: Fri Feb 15, 2002 8:00 pm
Location: *.no

possible?

Post by Papillon »

Is it possible to make the bot do commands on the shell account? Like lynx, gunzip etc... if it is.. how?
Elen sila lúmenn' omentielvo
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Yes it is and no it isn't.

It all depends what you want to do with them, how they interact with the shell and if you have access.

For gunzip, you can use commands provided by the compress module.

For lynx, you could use the http package provided by Tcl.
User avatar
Papillon
Owner
Posts: 724
Joined: Fri Feb 15, 2002 8:00 pm
Location: *.no

Post by Papillon »

I've tried doing wat u said... but it wont work, or I'm doing something wrong....
What I want to do is make the bot download a *.gz file and then unzip it to get hold of the data contained within... The .gz file is updated every hour, and it contains alot of info.
Elen sila lúmenn' omentielvo
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

What exactly have you done?
User avatar
GodOfSuicide
Master
Posts: 463
Joined: Mon Jun 17, 2002 8:00 pm
Location: Austria

Post by GodOfSuicide »

my typ : try it with crontab..

there u an implement those 2 :
wget <url>
tar <settings> <file>

mfg g0s
User avatar
Papillon
Owner
Posts: 724
Joined: Fri Feb 15, 2002 8:00 pm
Location: *.no

Post by Papillon »

thx GodOfSuicide.. it worked :)
only u forgot to add: rm -rf <file>
wouldn't take to long to fill up the shell when the bot downloaded a 250 kb file every 10 mins ;)
Elen sila lúmenn' omentielvo
User avatar
GodOfSuicide
Master
Posts: 463
Joined: Mon Jun 17, 2002 8:00 pm
Location: Austria

Post by GodOfSuicide »

np

i think yer shell provider would be glad if he hears about :D
Locked