Any thoughts on determining the location of a sourced script?
I have a.sh in /usr/home/location1 that calls b.sh in /usr/home/location2.
/usr/home/location1/a.sh
echo $0
. /usr/home/location2/b.sh
/usr/home/location2/b.sh
echo $0
When you run this script the output is...
Any best pratices for accomplishing the following:
a.plx is the main program, that wants a module to work on a pair of arrays and an associated hash.
( @a1, @a2, %a3 ) = b::work( @a1, @a2, %a3 );
over in b.pm, I have a sub work. I need to process the arrays and hash then return back to the main.
Do you know if Actuate has the capability to print bar codes or OCR scan lines or some type of marking that a mailing machine could pick up to know that an extra stuffer sheet needs to be sent with the letter?
Mike,
Thanks for the reply, but I had tried with and without the @. I did attempt to execute with the system call as suggested. NO errors, but the input still echoed.
thanks
al
Paul,
Thanks, I tried that with this code:
`@echo off`;
print "Password: ";
chomp ($pass1 = <STDIN>);
`@echo on`;
but received the following:
'off' is not recognized as an internal or external command,
operable program or batch file.
Password:
Am I missing something?
Aside from using the Term::ReadKey package, is there a recommended approach to accepting input as a password without echoing back the characters in a Windows (2000/XP) environment?
The specifics: An NT workstation, with ActivePerl 5.6.* installed. The SendMail.pm manually installed to the Perl\lib folder
The TestMail.plx being executed has been tailored to work in my host environment.
use Env;
use Sendmail;
#
# Create the object without any arguments,
# i.e...
Ron,
The format of the recipient is as described below. I've extracted code that I am using that sends to a list of recipients retreived from a file. Hope this helps.
#
# We set the To Recipients.
#$sm->To("Recipient <recipientid\@recipient.mail.domain>");
#
open(SQLLog, "<...
Probably a simple error, but it is baffling to me. I've successfully used this code (Thankyou) on other machines (XP & W2K), but as I try to execute from a NT4 box I receive the following:
D:\perl\lib\Mail>perl -v
This is perl, v5.6.1 built for MSWin32-x86-multi-thread
(with 1 registered...
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.