sendmail not working script

2003-04-05 Thread mel awaisi
Hi, this is the whole script: #!/usr/bin/perl use strict; use warnings; # Open Sendmail open(MAIL, "|/usr/lib/sendmail -t"); # Write to the sendmail program print MAIL "To: [EMAIL PROTECTED]"; print MAIL "From: [EMAIL PROTECTED]"; print MAIL "Subject:Yoour Subject\n\n"; print MAIL "Your messsage

sendmail not working

2003-04-05 Thread mel awaisi
Hello, i have the script below retest.pl, and whe i try to run it i get nothing. [EMAIL PROTECTED] cgi-bin]# perl retest.pl [EMAIL PROTECTED] cgi-bin]# -retest.pl # Open Sendmail open(MAIL, "|/usr/lib/sendmail -t"); # Write to the sendmail program print MAI

RE: sending an email to a email address after a perl operation

2003-04-04 Thread mel awaisi
thanks Dan, sorry for forgetting to send to list. the email script works alone, as it is, so maybe it is something else. Regards, Mel From: "Dan Muey" <[EMAIL PROTECTED]> To: "mel awaisi" <[EMAIL PROTECTED]> CC: <[EMAIL PROTECTED]> Subject: RE: sendi

sending an email to a email address after a perl operation

2003-04-04 Thread mel awaisi
Hi, I have a script named renamer.pl that takes images from a directory and renames images and stores image meta information in a mysql. i also have a script that sends an email notification when excecuted to a desired email address. is there away that i could combine the 2 scripts together, s

RE: script to send email message

2003-03-25 Thread mel awaisi
World! Net::SMTP=GLOB(0x81cdf28)>>> . Net::SMTP=GLOB(0x81cdf28)<<< 250 Data received OK. Net::SMTP=GLOB(0x81cdf28)>>> QUIT Net::SMTP=GLOB(0x81cdf28)<<< 221 mh-gen-a1.dundee.ac.uk Service closing channel. [EMAIL PROTECTED] cgi-bin]# [EMAIL PROTECTED] cgi-bin]# Regard

script to send email message

2003-03-25 Thread mel awaisi
Hi, I have been researching on this. i got a script when i try to run get an error connecting to server. This script i am just trying to get to work, but the main reason for this is to be able to insert it into another Perl script where i would like email to be sent automatically when the other

The Loop in this script is driving me crazy.

2003-03-24 Thread mel awaisi
Hi, The problem has been highlighted to me by a great person in this list, but i just cant solve it. I have this script that is not working as it should be. this is what it is supposed to be doing, take images from a directory (images are coming from camera) and renames them with the date and

combining two perl scripts together.

2003-03-16 Thread mel awaisi
Hi i have 2 perl scripts that do the following: The first is named renamer.pl. the script looks in to a directory namely /home/httpd/htdocs for files named images.jpg(coming from camera). the script renames the images with the date of the image, and moves to a new location namly /home/me/image

ls: *.jpg: No such file or directory

2003-03-11 Thread mel awaisi
Hi My error is as the subject says, i have a script that i am trying in it to locate where a directory with images are. the part in the script that the error i think is arising from is my $dir = '/home/me/images/'; my @jpegs = `ls *.jpg`; foreach (@jpegs) { print"$_"; # dont forget that a new

Re: Searchable archive for this list?

2003-03-10 Thread mel awaisi
Please tell me if you do find one? Regards, Mel From: Deb <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: Perl List <[EMAIL PROTECTED]> Subject: Searchable archive for this list? Date: Mon, 10 Mar 2003 07:31:04 -0800 Does anyone know of a searchable archive for the [EMAIL PROTECTED] list

store file paths in the database of the images

2003-03-08 Thread mel awaisi
Hi I have a perl script that takes images coming from a camera /home/httpd/htdocs/image.jpg and renames them the date and time of images to /home/me/images/2003_7_3_20_11_23.jpg. I would like to store file paths in the database of the images, (images header to include image_name, image_size an

Script does not want to run, error

2003-03-05 Thread mel awaisi
Hi, I am having problems opening this script on my machine. i have been getting help from a very helpful person on this list. I have checked the shebang line, that perl exists, and perl -v gives proper output. i try to run the script below as follow: [EMAIL PROTECTED] httpd]# cd cgi-bin [EMAI

Help really needed in this script: error: Prematue end of script header

2003-03-04 Thread mel awaisi
Hi, I have with the help of one of the guys of this list got this script to take an image from one directory and then rename it with the time and date of the image and then store it onto a new directory. I sotred the image in the cgi-bin, and then tried to run the file, i got errors, when i we