Re: Strip Carriage Returns

2002-04-04 Thread Kevin Hancock
Cure: Make this script on linux box, call it strip-dos, and run it make it executable first ~#chmod 700 strip-dos ~#./strip-dos file-name Creates a file called file-name.stripped so it doesn't mess with the origional. The magic is in the last line, if you want to type command each time just run

Re: web to sms

2002-03-12 Thread Kevin Hancock
On Tue, 12 Mar 2002, Matthew Harrison wrote: > what do i need to send sms messages to mobile phones from my website? is > it just the script or do i need emmitters, satellites and whatnot? is > there a site that allows you to target one of their scripts with a form on > your site. > You need a

Re: Matching text

2002-02-01 Thread Kevin Hancock
I have read about this before but it hadn't clicked. That helps clear up a lot of issues. Thanks > something like > if ($data =~ /User ([^ ]*)/) > { > $username = $1; > } > > what happends there is that it checks for the occurance of User then a > space followed by 0-* nonspace chars. it pu

Re: Where can I learn how to use taint?

2001-06-05 Thread Kevin Hancock
>> > >> >> > >>produces this: >> > >>"Too late for "-T" option at w:\cgi-bin\admin\tainttest.pl line 1." >> > > I had this problem and this exact same message on a linux server cause I had my CGI running SUID and calling my perl code. The c program calls my perl code #include #include #inclu

Re: Need to submit a form

2001-06-04 Thread Kevin Hancock
> >Kevin> Can someone point me at the appropriate place to start reading? >Kevin> Is there a module I need to use? > >"perldoc lwpcook" > >if that doesn't work, install LWP, and try again. Thanks for that. I have made it work! Don't understand it yet but I can make it do stuff. Cheers

Need to submit a form

2001-06-03 Thread Kevin Hancock
Hi All I need to write an application that submits a form to a www site and accepts the return code. I have a URL I need to call and pass parameters as if I had submitted a HTML form. This URL will then return several values that I must evaluate and act on. I can write basic Perl and CGI appl