Re: Generic database access?

2003-09-29 Thread Mark G
Rob, why not try one of r-desktops. I use TridiaVNC, which you can carry with ssh. Mark G - Original Message - From: "Rob Richardson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, September 29, 2003 3:33 PM Subject: Re: Generic database access? &g

Re: make CPAN::Shell->i; print to a filehandle

2003-06-30 Thread Mark G
-r can only be used by itself and is used to refresh or > create the on disk copy of cpan information. > (Defaults to /usr/local/cpan/cpan_dat/combo_list.dat) > NOTES: > Consider that with -[abdmi] flags the supplied REGEX will be > inserted after some de

Re: make CPAN::Shell->i; print to a filehandle

2003-06-29 Thread Mark G
- Original Message - From: "Harry Putnam" <[EMAIL PROTECTED]> To: "Mark G" <[EMAIL PROTECTED]> Cc: "perl" <[EMAIL PROTECTED]> Sent: Sunday, June 29, 2003 4:37 PM Subject: Re: make CPAN::Shell->i; print to a filehandle > Mark G <

Re: make CPAN::Shell->i; print to a filehandle

2003-06-29 Thread Mark G
- Original Message - From: "Harry Putnam" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, June 29, 2003 11:58 AM Subject: Re: make CPAN::Shell->i; print to a filehandle > Mark G <[EMAIL PROTECTED]> writes: > > > that would be >

Re: refs to hashes

2003-06-29 Thread Mark G
Thanks Kevin, that did it. Mark G. - Original Message - From: "Kevin Pfeiffer" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, June 29, 2003 5:45 AM Subject: Re: refs to hashes > In article <[EMAIL PROTECTED]>, Mark G wrote: > > > Hi

refs to hashes

2003-06-29 Thread Mark G
Hi All, I need to read in some data and put it into a data structure ex: knife #product name 3 #quantity 1 #price I would like to hold in as a hash referancing other hashes ex: $ref=read_data(); sub read_data{ open $RD,"< value.dat" || print "could not process request\n"

Re: make CPAN::Shell->i; print to a filehandle

2003-06-28 Thread Mark G
- Original Message - From: "Harry Putnam" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, June 28, 2003 7:18 PM Subject: Re: make CPAN::Shell->i; print to a filehandle > Mark G <[EMAIL PROTECTED]> writes: > > > >> $tar

Re: make CPAN::Shell->i; print to a filehandle

2003-06-28 Thread Mark G
le handle > Instead of STDOUT like it does in this formulation: > > $target = "somefile"; > if($opt_r){ > open(FH,">$target") or die "Cannot open $target: $!"; > print FH CPAN::Shell->i; you can try IPC::Open2. Mark g > } >

Re: perldoc - html format ?

2003-06-20 Thread Mark G
HI Janek, This doesnt seem to work on my Active perl 5.8. Mark G - Original Message - From: "Janek Schleicher" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 20, 2003 3:28 PM Subject: Re: perldoc - html format ? > Jeff Westman wrote at Fri, 2

Re: Can LWP::Simple tranfer image urls?

2003-06-20 Thread Mark G
O BoY, These are deffinitly Camel girls Mark - Original Message - From: "zentara" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 20, 2003 3:08 PM Subject: Re: Can LWP::Simple tranfer image urls? > On Fri, 20 Jun 2003 09:09:21 EDT, [EMAIL PROTECTED] wrote: > > >Do I

Re: Getopt::Simple

2003-06-20 Thread Mark G
'default' => '', > # 'verbose' => '', # Not needed on every key. > 'order' => 1, > }, > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > Mark G. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: a real novice question about long filenames on win32

2003-06-18 Thread Mark G
x27;<',"$PATH\\$_" || die "ERROR: $!\n"; m/- (.*) - (.*)\./i; open WR,'>',"$CONV_DIR\\$2 - $1\.mp3" || die "ERROR: $!\n" if( $1 and $2); # copy your file over while(1){ $char=sysread (TMP,$buff,4*2048) or last; syswrite WR,$buff,$char ||die "ERROR: $!\n"; } } <~~~ paste hth, Mark G -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: RE: Check if webserver is online

2003-06-17 Thread Mark G
w" image. > > > >HTH > > > >Dmuey > > > Sorry, I don't like those 'two-scripts' solutions, > i'd rather prefer something like 'ping' but i don't > really know how to do that. I will try around with > your suggestion

Re: while (<>)

2003-06-16 Thread Mark G
- Original Message - From: "Bryan Harris" <[EMAIL PROTECTED]> To: "Beginners Perl" <[EMAIL PROTECTED]> Sent: Tuesday, June 17, 2003 1:33 AM Subject: Re: while (<>) > > > #!/usr/bin/perl > > > > my $showme = shift > > or die "Usage: $0 [FILES]\n"; > > > > while (defined(my $lin

Re: Capture a printing function into an array

2003-06-16 Thread Mark G
- Original Message - From: "Harry Putnam" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 17, 2003 1:35 AM Subject: Re: Capture a printing function into an array > Mark G <[EMAIL PROTECTED]> writes: > > > I am a newbie as well b

Re: Capture a printing function into an array

2003-06-16 Thread Mark G
need to split @c = split "",sprintf(my_func()); > # @c = eval my_func(); >for (@c){ > print "Got it => $_\n"; >} > } > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > hTh, Mark G -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Backup utility (was RE: concatonate to file?)

2003-06-16 Thread Mark G
> #make the archive: > `tar -cvzf $targetpath $files`; This to can be write in perl. perldoc -m Archive::Tar perldoc -m Compress::Zlib - Original Message - From: "West, William M" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, June 16, 2003 3:08 PM Subject: Backup utility (w

Re: updating dos access time

2003-06-16 Thread Mark G
this; <~~~cut #!PERL -w open(FILE,'>> ./test.dat') || die "$!\n"; print FILE "hello"; close FILE; print "last modified:\t" . scalar (localtime ( (stat "./test.dat")[8] ) ); <~~paste hth, Mark G - Original Message - From: &

Re: I need to make this not end

2003-06-14 Thread Mark G
} else { print "You got it right!\n"; last; } } <~~~ paste - Original Message - From: Mr.T Mr.X To: Mark G Sent: Sunday, June 15, 2003 2:40 AM Subject: Re: I need to make this not end all right, the only problem with the script you sent is t

Re: I need to make this not end

2003-06-14 Thread Mark G
> I'm trying to make that ^^^ not end if you guess the number wrong. The chapter im reading is using the "for" and "while" >loop, but i guess I dont know enough yet to do this. Can someone help? you would need some type of a look to itterate through your code, that is why you book uses "for" a

Re: File not getting written

2003-06-12 Thread Mark G
- Original Message - From: "Jenda Krynicky" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 12, 2003 9:17 AM Subject: RE: File not getting written > From: Rob Das <[EMAIL PROTECTED]> > > I'm trying to merge a whole bunch of files (possibly tens of > > thousands) into one

Re: very beginner

2003-06-11 Thread Mark G
Here is an example that i posted some time ago, : <~~ cut use Socket; use Fcntl; use POSIX; my $PORT=2100; my $proto=getprotobyname('tcp'); socket($socket,AF_INET,SOCK_STREAM,$proto) || die "couldn't get socket: $!\n"; bind($socket,sockaddr_in($PORT,INADDR_ANY)) || die "couldn't bind: $!\n";

Re: typing files quickly

2003-06-10 Thread Mark G
hmm this misterious { _ } operand ?!? Is it sometype of a bitflag in the stat code it self, perhaps some magical referance to return structure. Anyhow here is a bit of code that utilizes it, run it in a directory with about 10 files, HTH, Mark <~~~ CuT use Benchmark::Timer; use Fcntl ':mode'; $

Re: Displaying Connections Or sessions to a Web site on NT/2000 Mach ines

2003-06-09 Thread Mark G
> Checking the sessions on the machine only shows users > opening files hmm, I bin loking for a module that can tell me what process has a file opened on win box. what are you using ?? Mark G. - Original Message - From: "Federico, Chris" <[EMAIL PROTECTED]> To: &l

Re: Is empty directory?

2003-06-05 Thread Mark G
and see for your self {readdir} Mark G -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Unzip using perll

2003-05-31 Thread Mark G
- Original Message - From: "Manish Uskaikar" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, May 31, 2003 12:34 AM Subject: Unzip using perll > Hi, > > I would like to find out, if there is any command which can do a unzip of a *.zip file; This unzip should be of the form ext

Re: MIME::Lite only sends 8k?

2003-05-31 Thread Mark G
Hi Michael, > I have a report that is in HTML format, it is about 120k of text. When > is use the program fragment below to send the report, I get only the > first 8k (about) and that's it. > judging by your code, you want to attach an HTML file as attachment ( Type =>'multipart/related', ) ,

Re: Can someone find out what's wrong ?

2003-05-31 Thread Mark G
Just out of curiosity what kind of cards are you using that you can change the MAC address ?? Mark - Original Message - From: "Nikolay Hristakiev" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, May 30, 2003 12:36 AM Subject: Can someone find out what's wrong ? > I've got a sc

Re: Comparing Dates Conditional statements

2003-05-27 Thread Mark G
> That won't work if the dates are more than a year apart(i.e. >100302 will Thanx Tim, I didnt think about that. Perhaps you will need to break up the string into 3 fields. Mark G - Original Message - From: "Tim Johnson" <[EMAIL PROTECTED]> To: "'

Re: Comparing Dates Conditional statements

2003-05-27 Thread Mark G
> How can I have condition as such > > $date = 'XX/XX/XX'; <-insert any date > If $date is greater then 01/01/02 then do . > Else > here is one simple way: <~~~cut $foo="01/01/02"; $bar="01/03/02"; $foo =~ s/\///g; $bar =~ s/\///g; if( $foo > $bar ){ print "\$foo is greater then

Re: Threads blocking on solaris

2003-04-02 Thread Mark G
I dont know if this is the problem, but why do you issue a system sleepperl has a built it sleep [perldoc -f sleep]. Is perl system thread safe on Solaris ?? Maybe you launch your threads and they are sleeping and you dont realize it , just my 2 cents. Mark - Original Message - From: "

dup2 on XP

2003-03-31 Thread Mark G
Hello guys, I think that perl 5.8 on winXP has a problem with file descripter tables. It fails to properly handle parents STDOUT when I dup2 in the child. Here is my script that runs fine on my FreeBSD box. It properly redirects childs STDOUT to a file , while leaving parents STDOUT to the scre

dup2 and IPC

2003-03-27 Thread Mark G
hi all, I am having a problem with duping stdout and socket. When my client forks of children, the childrens stdout is then duped with a socket. Which is what I want, but for some reason the parents stdout gets redirected as well. I want the parents STDOUT to stay the same and only redirect chi

Re: Socket Problem

2003-03-24 Thread Mark G
fic IP then it may not be listening to localhost and I wouldn't be > able to connect, but the only IP it should listen on > if that's the case is my '192.168.x.x' IP from my router. I > tried setting to that IP as well with no luck could be, if you want send me your

Re: counting fork process, again

2003-03-24 Thread Mark G
Hi Chad, I think your error lay in the place where Jenda pointed for you. Going posix way is the right way if you intend to do a lot of low level stuff your self. Mark - Original Message - From: "chad kellerman" <[EMAIL PROTECTED]> To: "beginners" <[EMAIL PROTECTED]> Sent: Monday, March 2

Re: Socket Problem

2003-03-23 Thread Mark G
Hi Stefan, If you have two different sockets open, one should not block the other no meter what kind of a socket that is. Send some of the code, might help us help you. Mark - Original Message - From: "Stefan Johnson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, March 22,

Re: Getting keyboard scancode, etc.

2003-03-23 Thread Mark G
Hi Beau, Dont know much about linux, but over on BSD there is a /dev/console . I am sure you can play with that, there are also open source key-loggers from which you can probebly extract the info you are looking for. Let me know how it go's. Mark - Original Message - From: <[EMAIL PROTE

Re: Help! Telnet-->FTP

2003-03-21 Thread Mark G
you can also write your own telnet client that can establish FTP sessions on the fly. In perl it would be simple, I wrote a pritty nice FTP server in about a day or so. Mark - Original Message - From: "Jeff Westman" <[EMAIL PROTECTED]> To: "beginners" <[EMAIL PROTECTED]> Sent: Friday, Mar

Re: Fork ?

2003-03-19 Thread Mark G
Ok I wrote you a quick example jeroe. I only had time to test it on a Xp box, this should work on *nix as well since most of my coding is on *nix. What you are looking for is a set of exec and waitpid call's to do the trick for you. Basicly this is how its usually don with forking. a: parents fork

Re: Script does not want to run, error

2003-03-05 Thread Mark G
Make sure your script starts with #!/path/to/perl then change permission of the script, chmod 755 file_to_set try to run your script, if it doesnt work try #perl file_to_run Mark - Original Message - From: "mel awaisi" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, March 0

Re: Coprocessor while running perl 5.4 (dos version)

2003-02-21 Thread Mark G
> If memory serves me ...looks like no leaks to me :O) - Original Message - From: "Jenda Krynicky" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 21, 2003 9:50 AM Subject: Re: Coprocessor while running perl 5.4 (dos version) > Fr

Re: Coprocessor while running perl 5.4 (dos version)

2003-02-21 Thread Mark G
> This looks a lot like an ix86. What generation, I don't know. Lst time I remember explicitly knowing that my box had a >math coprocessor, I was running a 386. I believe the Pentium chip pulled the functionality back into the CPU. > that must be exactly it. the x486 was same thing. You needed

Re: creating a shell

2003-02-13 Thread Mark G
> a real basic tutorial or doc of some kind that explains how to > write a simple shell here is a real simple psuedo shell; while(){ read from stdin parse it do something with it depending on the string read } - Original Message - From: "ktb" <[EMAIL PROTECTED]> To: <[EMAIL