The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
SolarisCron job perl script execution error sonu2die4 Shell Programming and Scripting 4 02-06-2009 05:22 PM
Perl Script Syntax error in version 4 youareapkman Shell Programming and Scripting 4 10-30-2008 12:22 PM
Perl script error pietie Shell Programming and Scripting 4 10-15-2008 10:05 AM
Perl Script Error with find command MKNENI Shell Programming and Scripting 4 03-26-2008 12:02 PM
String replace perl script error MobileUser Shell Programming and Scripting 6 05-04-2006 10:18 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-02-2009
Cooki3s! Cooki3s! is offline
Registered User
  
 

Join Date: May 2009
Posts: 2
Perl Error with ftptail script

Hello everyone,

I'm a starting website admin who 2 days ago decided to make the move from shared hosting to a vps on a linux (ubuntu 8.04) platform. This opened a whole new world for me, since I never worked with the console, SSH, linux,... before. I managed to get LAMP setup after a day of wiping my disk, reinstalling my os and starting over and over again.

Now, here's the deal: The website I run is for a small gaming clan based around the online FPS urban terror. We also rent a server from gameservers.com, but they don't allow bots to be run on their server. I learned from the forums of one of these bots that I could use a script called ftptail to access the gamelog in realtime from gameservers.com using my FTP access and copy that info into a new file, which is then used by the bot on the vps to manage the gameserver.

But, when I try to run ftptail, I get this error:
Code:
Undefined subroutine &main::quit called at ./ftptail line 54.
Here's what I did to setup and execute ftptail.
As root user:
mkdir /home/ftptail
cd /home/ftptail
wget http://hamstersoup.com/ftpfail/ftptail
chmod +x ftptail
nano passwd.txt (I entered my ftp pw in this file)
./ftptail -f -s 1 -p passwd.txt [FTPUSERNAME]@[FTPIP(with and without :21)/q3/94.75.249.234:29760/q3ut4/games.log >out

And 'out' would be the folder that the bot would access. Everything works, upto the last command, which gave me the previously mentioned error.

I hope I didn't take too much of your time, and I apologize if this is a very noobish mistake.

Thanks,

Cooki3s!

PS: ftptail @ http://hamstersoup.com/ftpfail/ftptail
Bot setup instructions I tried to follow @ How-to: B3 1.1.x Remote
  #2 (permalink)  
Old 05-04-2009
quirkasaurus's Avatar
quirkasaurus quirkasaurus is offline
Registered User
  
 

Join Date: Jan 2009
Location: canton, michigan
Posts: 373
looks like a perl error.

There may be a mistake in ftptail.
It may be calling a CPAN module that hasn't been installed.
You might try coding it:

perl ftptail -f .... etc...

You might check the path and the PERL5LIB environ variable to
verify that it's getting set properly and properly exported into the ftptail script.
  #3 (permalink)  
Old 05-04-2009
Cooki3s! Cooki3s! is offline
Registered User
  
 

Join Date: May 2009
Posts: 2
I managed to solve it myself by changing the folder named after the servers ip into 'myip', I guess the script had troubles with the : or the . .
Thx for your response,

Cooki3s!
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:18 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0