Can anyone tell me how to export a variable from one perl CGI script to another perl cgi script when using a redirect.
Upon running the login.pl the user is prompted to enter user name and password. Upon entering the correct credentials (admin/admin) the user is
redirected to welcome page.
My requirement is, the welcome page should display the username.
I am trying to setup an auto-mounting network drive. The network drive requires a user/pass.
I am trying to run a perl script with the header #!/user/bin/perl -w
When I try to run the script the terminal returns
@localhost Begperl]$ ./circumfrence.plx
bash: ./circumfrence.plx: /user/bin/perl: bad interpreter: No such file or directory
I'm maintaining a heterogeneous network of mac and linux so I decided to create a little perl script to unify mounting strategies across machines.
The current implementation in linux is in /etc/fstab works fine:
//myserverhere.com/cifs_share /mnt/cifs_share cifs
user,uid=65001,rw,workgroup=DEV,credentials=/root/.cifs 0 0
and /root/.cifs contains
username=ouruser
password=ourpassword
I
Hi,
I'm trying to write a script in Perl to download a file that requires NTLM authentication to access, stored on a machine on this network.
I'm trying to get this
http://search.cpan.org/~gaas/libwww-...lm.pm#SYNOPSIS
to work, but it simply won't.
Code:
use LWP::UserAgent;
use HTTP::Request::Common;
my $url = 'http://machine:port/file.pdf';
# Set up the ntlm client and then the base64 encod
I have a perl script running as root, and from within it I want to execute a system command bar as a lesser priveleged user foo.
Hello,
I have a perl program called snp_hwe.pl
I have another program called hwe_test.run which contains the following:
Code:
for file in *.inp
do
cp $file genotype_counts_c.txt
./snp_hwe.exe > $file'.res'
done
I want to change my perl program to an executable program while changing its extension to .exe so the program hwe_test.run can detect it.
Thank you very
Hi Folks,
I have 2 perl scripts and I need to execute 2nd perl script from the 1st perl script in WINDOWS.
In the 1st perl script that I had, I am calling the 2nd script
main.pl
===========
print "This is my main script\n";
`perl C:\\Users\\sripathg\\Desktop\\scripts\\hi.pl`;
hi.pl ( this script I am calling from the firstperlscript.pl)
====
#!perl -w
print "hii Gir
Good afternoon!
I am a perl newbie. I hope you will be patient with me.
I have a script that needs to be written in perl.