Problem executing command via ssh

2019-08-23 Thread Mario Galindez
Folks, I need to execute a program in a remote machine, that takes its input from STDIN. I created a user in such remote machine, and set my program as the shell for that account (so I don't need to provide shell access). On my local node, I have this program: #!/usr/bin/perl use IPC::Open

print <<"HTML code"; in NETSCAPE

2003-08-04 Thread mario kulka
I'm using the following to print HTML to the browser: print <<"HTML code"; "my html here" HTML code It works fine in IE but when I execute the script under Netscape it displays the source instead of loading the page based on the source. Please help. Mariusz ___

secure socket connection

2003-07-16 Thread mario kulka
I'm trying to set up credit card processing and one of the first steps is to establish a "secure socket connection" - how can i do it? (My host does support it) Thanks, Mariusz _ STOP MORE SPAM with the new MSN 8 and get 2 months FR

opening SSL, security, (authorize.net)

2003-07-14 Thread mario kulka
Did enyone have to create a script to process credit cards using the AIM method through the AuthorizeNet gateway? I'm a little bit lost. There are few things I must do and never done before: [e.g. open a SSL connection between my hosting server and their gateway and then post the data (credit ca

errors installing MD5 module

2003-06-25 Thread mario kulka
Hi, I'm trying to install the MD5 module and following the steps from CPAN website. I got to the part C. BUILD- by typing: perl Makefile.PL it goes well, but then it says: make: gcc: Command not found make: *** [MD5.o] Error 127 Should I continue with install after this? Can anybody tell me what

MD5 module

2003-06-25 Thread mario kulka
Few days ago I sent a message about uploading modules but I just realized I wasn't subscribed to the list. I just re-subscribed but I missed the replys; is there a way to view the last messages posted to the list by date or something? or could someone just copy the reply to : "How to install MD5

installing modules

2003-06-23 Thread mario kulka
Could anyone give me step by tep instructions on how to install a perl module (MD5) on my host server. How come they don't have it installed? Isn't popular enough? Sorry if I sent the same message for the second time, but the prvious one doesn't came through on my list. Mariusz __

installing modules

2003-06-23 Thread mario kulka
How can I install the MD5 module on the server where I'm hosting my website? _ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus -- To unsubscribe, e-mail: [EMAIL PROTECTED] For addi

MD5 errors

2003-06-20 Thread mario kulka
Hi, The following line gives me an "Internal Server Error": use MD5; I also tried: use Digest::MD5; with the same result. When I check the syntax locally through perl -c filename everything is ok. File is properly uploaded, etc.. basically it works without that line. thanks for suggestions

Re: session ID - silly thoughts

2003-02-12 Thread mario kulka
y combinations, but if the secret_word (or number) is short; isn't easy to find it? Mariusz From: "Jenda Krynicky" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Re: session ID Date: Thu, 13 Feb 2003 00:37:38 +0100 From: "mario kulka" <[EMAIL PR

using libraries

2003-02-12 Thread mario kulka
I inserted the following line into my cgi script: use Digest::MD5 qw(md5 md5_hex md5_base64); and it generates error; but if type: use MD5; it works fine. Can someone pls explain? By the way, I read on perldoc.com that md5($data,...) This function will concatenate all arguments, calculate the

Re: session ID

2003-02-12 Thread mario kulka
hash). Thanks for further explanations, Mariusz From: Bernhard van Staveren <[EMAIL PROTECTED]> To: "mario kulka" <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] Subject: Re: session ID Date: Wed, 12 Feb 2003 18:46:27 +0100 On Wed, 12 Feb 2003 17:07:16 + "mario kulk

session ID

2003-02-12 Thread mario kulka
Hi, I guess I'm lost again on this topic:( I'm basically trying the following: User logs in -> then he has a choice: 1. enter new record 2. edit old one Once taken to those new pages I somehow must keep the fact that he already logged in and at the same time forbid other people from a direct acce

ascii or binary?

2003-02-10 Thread mario kulka
If I include a link on my site to a file that sits on the server(e.g. *.mp3), the viewer will get the "Save as.." box and can coninue with the download. My question is: what is the defoult transfer mode for the above described action? ASCII or binary? Is it dependend on the browser? Mariusz

24 hour time issue

2003-02-10 Thread mario kulka
hi, My form asks for the time in the format hh? mm? am/pm? However before I combine it all into one value (so I can insert it into my MySQL table) I would like to change the format to military time. I thought I could simply add 12 to the "hh" value when "am/pm" is pm, which works fine except for

MySql LAST ID

2003-02-10 Thread mario kulka
hi, I'm trying to retrive the id number ($ad_id) of the record I just entered: ... $sth = $dbh->do (qq{INSERT INTO $table..."my record" $sth = $dbh->prepare ("SELECT LAST_INSERT_ID() FROM $table"); $sth -> execute(); $ad_id = $sth->fetchrow_array(); $sth->finish(); ... The above works fine and g

matching patterns

2003-02-04 Thread mario kulka
I am trying to extract ".jpg" (subtype of the file) from the string: c:\my_files\file.jpg I found the following pattern on the net: $file =~ s/.*[\/\\](.*)/$1/; which extracts the file name (file.jpg). I understood most of that pattern except what does the (.*) part does? And how can I tweak it

RE: extracting

2003-02-04 Thread mario kulka
would assume that whatever after the last period (.) would be its subtype; e.g. if the file path is c:\my_music\file.mpeg I could just split that and extract the last element?? Thank you for any suggestions, Mariusz From: Bob Showalter <[EMAIL PROTECTED]> To: 'mario kulka&#x

extracting

2003-02-04 Thread mario kulka
Hi, While uploading a file my $type outputs as "audio/mpeg" What's the simplest way to extract just the extension (in this case mpeg)? I thought to do this: ($not_needed,$extension) = split; But can $type = $info->{'Content-Type'} output something in other formats with more elements? (e.g. audio

Re: file's MIME type

2003-02-04 Thread mario kulka
I found the problem. Pls disregard my last email. Thanks for all your help. Mariusz PS. My HTML was incomplete. It was missing: enctype="multipart/form-data" From: Wiggins d'Anconia <[EMAIL PROTECTED]> To: mario kulka <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] Su

Re: file's MIME type

2003-02-04 Thread mario kulka
I don't get any errors. The only problem is that $type prints out as empty. Script executes fine; $info (after submitting a .txt file) prints to the browser as: HASH(0x821b428) HTML part: music Thanks for all your help. M From: [EMAIL PROTECTED] To: "mario kulka" <[EM

Re: file's MIME type

2003-02-03 Thread mario kulka
mario kulka wrote: I found the following in a book when trying to find out the file's MIME type, but it doesn't work. Am I missing something obvious? Thanks. M. code: #!/usr/bin/perl -W use CGI ':standard'; $file = param('music_file'); $info = uploadInfo ($fil

file's MIME type

2003-01-31 Thread mario kulka
I found the following in a book when trying to find out the file's MIME type, but it doesn't work. Am I missing something obvious? Thanks. M. code: #!/usr/bin/perl -W use CGI ':standard'; $file = param('music_file'); $info = uploadInfo ($file); $type = $info -> {'Content-Type'}; print "Content-

reading files

2003-01-31 Thread mario kulka
Before I upload a file with a random name I would like to make sure that another file with the same name doesn't already exist. Is there a way to look for a specific $name file within a directory (on UNIX). thanks, M _ Protect

uploading files

2003-01-31 Thread mario kulka
Hi, After I click on "submit" and point to the cgi there is a period of time before the cgi finishes running and loads the next page. If the script is simple and takes short amount of time everything is great. But what if that's not the case? What if the script (while uploading a file for exampl

Perl from command line documentation

2002-08-13 Thread Mario
mment is welcome. Best Regards Mario

Re: simple regexp

2001-07-06 Thread Mario Todorow
perl -ne ' print "$1\n" if /\s(\d+\.\d+\.\d+\.\d+)\s/ ' file is better.

Re: simple regexp

2001-07-05 Thread Mario Todorow
Try this one line command perl -ne ' print "$1\n" if /\s(\S+\.\S+\.\S+\.\S+)\s/' file Cordially Mario

RE: Editor

2001-07-04 Thread Aigner-Torres, Mario
The answer here still gnu emacs. For NT, have a look at: http://www.gnu.org/software/emacs/windows/faq.html cheers, mario -Original Message- From: RL Autry [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 04, 2001 3:01 AM To: Kris G Findlay; Beginners perl; [EMAIL PROTECTED] Subject

RE: Editor

2001-07-04 Thread Aigner-Torres, Mario
Hi Bill, my choice is gnuemacs with cperl! cheers, mario -Original Message- From: Bill Pierson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 03, 2001 9:34 PM To: [EMAIL PROTECTED] Subject: Editor Hello again, all. May I get some suggestions for any Windows-based PERL development