Re: FW: FTP not connecting to a particular site.

2006-07-14 Thread Ted Yu
he list.   From: Timothy Johnson Sent: Friday, July 14, 2006 4:02 PM To: 'Ted Yu' Subject: RE: FTP not connecting to a particular site.   This sounds like a name resolution issue then.  Have you tried doing an NSLOOKUP for the name of the ftp server?  From: Ted Yu [mailto:

RE: FTP not connecting to a particular site.

2006-07-14 Thread Ted Yu
same computer at the command-line?  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ted Yu Sent: Friday, July 14, 2006 10:35 AM To: perl-win32-users@listserv.ActiveState.com Subject: Net:FTP not connecting to a particular site.   Hi Group: Some computers are not able t

Net:FTP not connecting to a particular site.

2006-07-14 Thread Ted Yu
Hi Group:Some computers are not able to Net:FTP to one particular server.  It was working fine until yesterday when the error message "Unable to Connect" comes up.  The server itself works fine, and it is live and there are thousands of users per day.  It is just two computers that have been having

Net::FTP not working after client switched from Static to Dynamic IP

2006-06-01 Thread Ted Yu
Greetings Perl Group:Is there some way to make the Net:FTP work after the client switched from a static to a dynamic IP address.  Here is my code:$ftp = Net::FTP->new("$ftp_server_name", Debug => 0) or Win32::MsgBox("Unable to Connect to BargainTix Server", 64, "BargainTix.com"), die(""); #&server_

Re: Xbase module

2006-01-12 Thread Ted Yu
Hey guys: Do you think it would be better if I use the XBase module instead of the Xbase module for this project? Thanks. Ted --- Ted Yu <[EMAIL PROTECTED]> wrote: > Hi Everyone: > > DBF files have this column that is "marked for > deletion". There is an X in

Xbase module

2006-01-10 Thread Ted Yu
Hi Everyone: DBF files have this column that is "marked for deletion". There is an X in the first column if it is marked for deletion. I really need a way to identify this "marked for deletion" column. Appreciate any idea on how to identify this column. I am using the following method to read

"use Spreadsheet::ParseExcel" question

2005-08-01 Thread Ted Yu
I have an Excel file that I am using "Spreadsheet::ParseExcel" to process. Unfortunately, oftentimes, the file is processed with a single space between each letter... For example "ticket" becomes "t i c k e t" Has anyone encountered this problem before? Any solutions? Thanks.

setting password for awstats.pl

2005-07-23 Thread Ted Yu
We're using awstats to publish our webstats.  I'm not too familiar with using .pl files to display web information.  Is there a way to modify the code for awstats, so that the page requires a password to view.  Not too sure how to do this.     Also, we want to give the password to our client, but w

RE: Use DBI; vs. use Win32::ODBC;

2005-06-14 Thread Ted Yu
I tried to print out the output of the select statement.  No error, but no printout either.  Not sure if there is an error in my code:   use Win32::ODBC; my $pw = "password1";my $user = "ted";my $dsn = "db1";$db = new Win32::ODBC("DSN=$dsn;UID=$user;PWD=$pw") || die "ERROR: Failed to open database

Use DBI; vs. use Win32::ODBC;

2005-06-14 Thread Ted Yu
I recently wanted to use the following code for a select statement:   use DBI;my $dbh = DBI->connect( "dbi:ODBC:{database}","{username}", "{password}")    or &error('CONNECT_SQL'); my $results = $dbh->selectall_arrayref('select count(*) from tblTicketFileProcessLog'); print $results;use DBI;my $dbh

How secure is Perl FTP function

2005-05-23 Thread Ted Yu
   $ftp = Net::FTP->new("$ftp_server_name", Debug => 0) or die(""); #&server_error,   ,   $ftp->login("$ftp_user","$ftp_pass");    $ftp->binary;    $ftp->put("$upload_filename");    $ftp->quit; If I compile the code into an .exe file with ActiveState Perl, can an average hacker look at the machin

uninstall/delete running app

2005-05-03 Thread Ted Yu
I have a program that run continuously once an hour that looks something like this:   while (1 == 1)     {    #  stuffs ..     sleep(3600);     }   During uninstall, or if the customer tries to delete this program, it won't allow you to because the program is continuously running.  I know you c

detect name of username and password of user

2005-04-06 Thread Ted Yu
Is there a way for Perl to read the username and password of the XP windows user?  I want to be able to set schedules using dos command "schtasks" without the user having to enter their name and password, and just have the system enter it automatically.   This seem like a longshot, but I figure it

Question about perl Xbase module

2005-03-11 Thread Ted Yu
Xbase module occassionally cuts off the last letter of the dbf fields.  Am I the only one who gets this problem?  Here is my code:     $database = new Xbase;  $database->open_dbf("$upload_file_path_name$filename");  $database->go_top;   open(STDOUT, ">dbf_fields.txt");  $database->dbf_stat;  close(

(no subject)

2005-03-04 Thread Ted Yu
> Hi there:> > I'm having a serious problem with the FTP function for Active State Perl.  The > code I am using is as follows:> > $ftp = Net::FTP->new("$ftp_server_name", Debug => 0) || &server_error;> $ftp->login("$ftp_user","$ftp_pass");> > $ftp->type("A");> > $ftp->put("$upload_filename");> > $f