Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Me again, Sockets 1

Status
Not open for further replies.

sleuth

Programmer
Jan 12, 2001
134
US

Hey Everyone,

Ok, so I've gotten this Net::FTP; module working great and now my script is on it's way. But now I have to do something that I've never done before much like the ftp module I just started using, I have a script on the server that does some quick calculations and stuff, just reads databases and gets some numbers for me,

My question is how can I connect to the script on the server with a socket, and send a request for information, like print Socket "gimmedata"; and it returns the data?

This one's really wiered to me because it seems like the script on the server wouldn't even run, would it? Is this even a possibility?

Thanks a million!!!

Tony
 
through ftp? no, i don't think you can run scripts through ftp - i may be wrong, but i don't know how. through telnet, though, you could.

actually, here's a quick and easy alternative: can you have the script on the remote machine in the cgi-bin, then add a "Content-type: text/plain\n\n" header? then you could use LWP::Simple to retrieve the results... "If you think you're too small to make a difference, try spending a night in a closed tent with a mosquito."
 
oh, i misread your question a little. sorry. my quick and easy alternative should still work... "If you think you're too small to make a difference, try spending a night in a closed tent with a mosquito."
 

Good Idea, I'll try that, thanks,

Tony
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top