Hi,
What is the syntax to search for a phrase inside of a file?
for example if I want to search for First name in several files in on the server under root?
I'm Trying add an .edi extenion to the file that originally looks like this: i.gtp.030206065504
I would like it to look like this: i.gtp.030206065504.edi
When using this code Im getting the error: Cannot rename *gtp.* to *gtp.*edi:
This is my code:
OLDSUFFIX=
NEWSUFFIX=edi
for FILES in...
Hi,
I'm new to unix and I'm was wondering if anyone might know how to do the following:
1.find files with *in extension in over 20 directories on Server A
2.FTP these files to 20 seperate directories on to Server B (where the script is running)
I'm interested in using the find command if I...
Hi,
I'm new to unix and I'm was wondering if anyone might know how to do the following:
1.find files with *in extension in over 20 directories on Server A
2.FTP these files to 20 seperate directories on to Server B (where the script is running)
I'm interested in using the find command if I...
I'm Sending an html attachment using MIME:LITE and the email is sending an attachment however the html attachment displays all the file names in the directory rather than the html contents. My Ultimate Goal is to attach an html file with yesterdays date. Any Suggestions?
Here is my code...
I have been struggling with this issue for a while and need help;
I'm tring to print 3 collumns vertically in the following order:
@cobol_out_circ_id_2 @section_count2 @chunks
Here is my code:
foreach $cobol_out_record(@uniq_cobol_out)
{
$cobol_out_snapshot=...
I' m fairly new to Perl, and what Im trying to do is :
1. Loop through each line of an array
2. Extract five bytes at a time
3. Store
4. add a space b/w five byte
each line contains:
30130301313G11341669416864168741783418664509A
want to accomplish:
30130 30131 3G113 41669 41686 41687 41783...
I would like to run a script every four minutes
this does not work any suggestions?
4 * * * * /export/home/egate/Perl_Development/monitor_log.pl > /dev/null 2>&1
04 * * * * /export/home/egate/Perl_Development/monitor_log.pl > /dev/null 2>&1
I'm trying to send an email to myself with the code shown below. and I verified the location of send mail and Im still not receiving emails any suggestions?
open (MAIL, "|/usr/lib/sendmail -oi -t -odq") || die "cant use mail send";
print MAIL "from...
I'm wanting search for the string "Rollback", if I see the string send an email with a message.
#!/usr/bin/perl
@XML_COBOL_LOG =();
$Rollback ="Rollback";
#Open Debug
unless (open (Debug,">/export/home/egate/Perl_Development/Debug.txt"))
{
print "Debug.txt...
Our Unix Administrator installed ActivePerl-5.8 in the following directory
/usr/local/ActivePerl-5.8
I have installed the MIME:LITE module in the direcotry
/export/home/egate/.cpan/CPAN/MIME-Lite-2.117.tar
I'm not sure what I need to configure now to make my program work and know whether I...
Has anyone installed a Perl Module before? Is a C compiler always required. Im trying to Install MIME: LITE and during installation I noticed that the make program is not anywhere to be found on our Solairs 8 box. What are the steps that needs to be taken for our Administrator to install this...
I have had lots of problems with installation of MIME:LITE (the make program is not available on our server), and Im frusturating our Unix admin.
I want to know if there is an easier way to sent an email with an HTML attachment.
Thanks.
I'm trying to view all xml messages that do not have the task of "XT" or "XF" and store them in an array. How can I use an OR statement and get the xml messages with out the task of "XT" or "XF". This code below is giving me everything and not taking out...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.