Current User: Guest Login
Please consider registering


Lost Your Password?

Search Forums:


 






Minimum search word length is 4 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

could program read files from remote computer?

Reply to Post Add a New Topic
UserPost

5:36 pm
June 18, 2010


lisaH

New Member

posts 1

I'd like to use this to get awstats data from our linux/apache server. I understand that to do that, I would need to download the files to my own pc, which i can do.

I just wanted to put in a plug , though, for maybe having the program connect to a remote pc with the correct path. This would save a lot of time!Laugh

All in all though, great program!

10:14 pm
June 20, 2010


Jean-Luc

Admin

posts 1125

Hi lisaH,

Try using a batch file. Here is an example. It can definitely be improved and you will have to replace the names in uppercase letters by the values required by your system:

@echo off

echo open FTP-SERVER>ftp.commands
echo USER-NAME>>ftp.commands
echo PASSWORD>>ftp.commands
echo get /PATH-DATA-DIR/awstats%1.CONFIG.txt>>ftp.commands
echo quit>>ftp.commands
ftp -v -i -s:ftp.commands
echo . | del ftp.commands

echo awstats%1.CONFIG.txt>aws2xls.commands
echo yes>>aws2xls.commands
aws2xls < aws2xls.commands
echo . | del aws2xls.commands

where

  • FTP-SERVER is the host name of your FTP server
  • USER-NAME is the username to connect to the FTP server
  • PASSWORD is the password
  • PATH-DATA-DIR is the path to the directory containing the AWStats data files after you have logged in your FTP server
  • CONFIG is the config name of your AWStats data files

If the batch file is called plug.bat , you must call it like this:

plug.bat 052010

to download and convert the AWStats data file of May 2010.

Reply to Post

Reply to Topic:
could program read files from remote computer?

Guest Name (Required):

Guest Email (Required):

NOTE: New Posts are subject to administrator approval before being displayed

Smileys
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
9 + 1
   


About the InternetOfficer.com Forum

Forum Timezone: UTC 1

Most Users Ever Online: 302

Currently Online:
10 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 2
Forums: 9
Topics: 638
Posts: 2712

Membership:

There are 257 Members
There have been 305 Guests

There is 1 Admin
There is 1 Moderator

Top Posters:

cssfsu – 55
deepakgupta – 34
albert_newton – 30
cosminpana – 20
DTNMike – 19
ahtshun83 – 17

Recent New Members: raju, todd2taylor, sbdcunha, mansigill1987, ThomasDuh, ThomasKic

Administrators: Jean-Luc (1125 Posts)

Moderators: Jean-Luc (1125 Posts)