Programming :: Die 'error' If (xxx) - Valid Perl?

Mar 2, 2010

I saw a wierd code in perl code recently it went kind of like this: die 'error' if (xxx); Now is that valid perl?

View 5 Replies


ADVERTISEMENT

Programming :: Perl Script Wont Run - No Error

Aug 8, 2010

I've been trying to get the ol' hello world script to run in a browser. From the hours of reading of various pages about this, I cant work out Basically I get nothing at all displayed.

the perl (test.pl):
#!/usr/bin/perl
print "Content-type: text/html
";
print "Hello, world!";

[Code]....

The output: Nothing. no error message either in the browser window or in the servers error log. If I change the path or the file name I get "invalid CGI ref" in the Cpanel error log.

I did get this to work for a brief time, then changed the Perl script and it stopped working. So I went back to hello world and havn't seen it work since. What is going on?

View 1 Replies View Related

Programming :: Perl Net- LDAP - Why Don't Work Any Error Handling

Nov 12, 2010

i have some perl codes for using ldap,but i don't know why don't work any error handling When i use msg->code for sample. an example:

[Code],,,,

In this case,if $msg->code return zero(or null) every thing work correctly but if it not zero don't give any message(eg."error result").What is problem?

View 1 Replies View Related

Programming :: 32512 Error Code In Perl When Trying To Run Shell Command?

Nov 29, 2010

when I execute the command from the shell command line - it works and no error code.if I do the exact same command from a perl file - it fails with code 32512.the file is created from the same perl script that runs the command that fails. file permission is 0664.

Code:
#! /usr/local/pkg/perl-5.8.8/bin/perl
print "Content-type: text/html

[code]...

View 3 Replies View Related

Programming :: Error/warning Message S From For Simple Perl Script

Mar 17, 2010

I just wrote a simple perl script to compare the following two files

[Code]...

View 7 Replies View Related

Programming :: Perl: Determine Error Origin / Meaning In Code Call

Jan 20, 2010

I've been requested to modify a perl backup script we use which mounts a networked NAS machine. The actual mount command is called inside a system() command. In testing, I can do a test of the return value, so I'm able to tell whether or not I've mounted properly, but I can't make heads or tails out of the return on deliberate errors. (Such as mounting a non-existent box.) I'm displaying the returned value, which is 256 in my tests. The man page for mount listed error messages with values from 1 to 64, but no higher. Am I drawing this error value from the system command somehow? And what would be the best way to determine what this error means?

View 6 Replies View Related

Programming :: Perl Compilation Error "Cannot Locate Unicode/String.pm In @INC"

Mar 9, 2010

I get an error when typing perl build.pl: Code: Cannot locate Unicode/String.pm in @INC

View 11 Replies View Related

Programming :: Perl - Directories Given To Opendir Via Foreach Give "No Such File Or Directory" Error

Feb 19, 2009

I'm writing a perl script to remove a test database and part of that is of course getting rid of all files. So I wrote this to do the job:

Code:

This always results in an "Could not open /u00/app/oracle/product/10.2.0/rdbms/dbs for reading: No such file or directory" (that directory is the one ending with the $spfile_dir variable) message, although that directory exists and the executing user has writing rights on it.

The same behaviour if I create the directory array like this:

Code:

The problem does not occur when one of the directories is the only element in the array though. Of course I could copy and paste that part of the script for the second directory, but I don't like that workaround.

View 1 Replies View Related

Fedora Networking :: /usr/bin/perl: Symbol Lookup Error: /usr/bin/perl: Undefined Symbol: PL_use_safe_putenv

Apr 8, 2009

I am trying to setup the wlan access for my Fedora 9 system. I installed ndiswrapper. But when I run

Code:

ndiswrapper -l

i am getting the error

Code:

/usr/bin/perl: symbol lookup error: /usr/bin/perl: undefined symbol: PL_use_safe_putenv

View 11 Replies View Related

Programming :: Pthreads Return Value Valid Or Not

Jun 14, 2010

I have confusion regarding pthreads return value. All in short, is the is a valid return value ?

[source]
void * myThrRoutine(void *arg)
{
struct myStruct **myst = (struct myStruct**) arg;
cout<<"In thread "<<(*myst)->var<<(*myst)->msg<<endl;
int x = 20;
pthread_exit((void*)x);
}
[/source]

This seems to work fine on pthread_join , but I want to ensure it is not by chance.

View 1 Replies View Related

Programming :: Bash Function Check For Valid IP?

Apr 16, 2010

I have been working on this way too long now...this *should* be simple. I must be missing something simple at this point.

Code:
function f_is_ip()
{
if [ "`echo "$1" | /bin/egrep "[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}"`" != "" ] ## Error on this line

[Code]....

When I echo $1 ## prints 192.168.1.22

View 4 Replies View Related

Programming :: MATLAB - Any Valid Free Alternatives?

Mar 2, 2010

I need MatLab for a course at the university, but it's not an open source software as all of you know, so I wanted to know if there are valid freeware alternatives. I was told to use Octave or Scilab if I didn't want to buy the license and so I would like to know what's better in terms of MatLab compatibility and ease of use, if there are any other (and maybe better) alternatives and also if there are free Simulink-like programs.

View 8 Replies View Related

CentOS 5 :: Error Yum Update "Error: Cannot Find A Valid Baseurl For Repo: Rpmforge"

Jul 30, 2009

after changing in the server the network configuration of DHCP to have an IP set, every time I run yum update I get the following error:

Error: Cannot find a valid baseurl for repo: rpmforge

And I noticed that every time you reboot the server the file resolv.conf is erased

View 13 Replies View Related

Ubuntu :: Error - Work VPN - Failed Because There Were No Valid VPN Secrets

Oct 13, 2010

From my laptop I use at work, I exported the ".pcf" file I use with Cisco VPN Client.

I downloaded vpnc using Ubuntu 10.10, imported that pcf file (all of the settings were there). Tried to connect, and it gives me the error saying

The VPN Connection 'Work VPN' failed because there were no valid VPN secrets..

View 4 Replies View Related

General :: MPC Make Error Libgmp.la Is Not A Valid Libtool

May 26, 2011

I am trying to make mpc .

I first configured using following

Code:

then i make using

Code:

View 2 Replies View Related

CentOS 5 Networking :: Error: No Valid Servers Configured

Jun 3, 2010

My problem is configure and start FTP server on own computer. I edited configure files, and i try to run ProFTP. Then i see that communication: Launch proftpd: - warning: unable to determine IP address of 'dhcppc1'

- error: no valid servers configured
- Fatal: error processing configuration file '/etc/proftpd.conf'[FAILED]

View 3 Replies View Related

Ubuntu :: Error - 'oracle' Is Not A Valid Choice For $db_driver In Localconfig

Apr 22, 2010

I have following setup on a ubuntu machine.

- Fetchmail collects emails and notifies procmail

- Procmail forwards this mail to a perl script which extracts the attachments

- then this script executes the bugzilla importxml.pl with the attachments.

This works like a charm on the ubuntu machine. Unfortunately I now have been forced to rebuild this setup on a oracle linux. Well, I can run the imports from terminal as root user. The import works well.But if fetchmail trigges procmail and the the perl scripts become executet I get following error:

Code:

'oracle' is not a valid choice for $db_driver in localconfig: Can't load 'lib/i386-linux-thread-multi/auto/DBD/Oracle/Oracle.so' for module DBD::Oracle: libclntsh.so.10.1: cannot open shared object file: No such file or directory at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/DynaLoader.pm line 230.
at Bugzilla/DB/Oracle.pm line 41

[code]...

The path "lib/i386-linux-thread-multi/auto/DBD/Oracle/Oracle.so" is right if you go from the importxml.pl but if perl realy looks on this as absolute path to oracle.so then its clear that the file is not there... Again. The script works if I call it manually. So whats the difference between manual call and call through the process described at the beginning? Something seems to be different in the perl environment. The .procmailrc lies in /root and fetchmail is startet manually by the root user in the terminal (for testing). So I thing at the end its in both ways the same user who calls importxml.pl...

View 9 Replies View Related

Server :: Error - Cannot Find A Valid Baseurl For Repo - Addons ?

Jan 3, 2010

I recently did my first installation of centos on a vm. I tried playing around for a while but when I tried doing an update it says Determining fastest mirrors for a while then gave me Could not retrieve mirrorlist [url]

Error was
[1] 13506
[2] 13507

Cannot find a valid baseurl for repo:addons

View 12 Replies View Related

Server :: Error: Cannot Find A Valid Baseurl For Repo: Base

Apr 18, 2011

When trying to run 'yum update' or 'yum install' i get the following message:

Quote:

# yum update
Loaded plugins: fastestmirror, kmod
Loading mirror speeds from cached hostfile
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.

[code]....

View 3 Replies View Related

CentOS 5 Hardware :: An Error Occurred - No Valid Devices Were Found

Jul 12, 2010

when i want to install centos 5.5 i take this error:

An error occurred - no valid devices werefound on which to crate new file systems.

my hardware specification is:

motherboard: gigabyte p55a-ud3
ram: ddr3 crucial 4gb
cpu: corei5 750
hdd: 2X1TB wd black edition raid1

View 8 Replies View Related

CentOS 5 :: Error: Cannot Find A Valid Baseurl For Repo: Rpmforge

Nov 18, 2010

i am trying to install the GD2 extension for PHP but i am not sure how to do this. i have try the

yum install php-gd
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://apt.sw.be/dries/fedora/fc4/mirrors-rpmforge error was
[Errno 14] HTTP Error 404: Not Found
Error: Cannot find a valid baseurl for repo: rpmforge

View 1 Replies View Related

Programming :: Perl Switch Statement Throwing Error Like Bad Case Statement (invalid Case Value)?

Oct 6, 2010

I've written a simple perl code to learn switches in perl.My code is pasted below,

#!/usr/bin/perl
$opt = 1;
switch($opt) {

[code]...

View 3 Replies View Related

Fedora Servers :: Error: Cannot Find A Valid Baseurl For Repo: Base

May 1, 2011

I have a VPS with Fedora 13 32 bits.

[root@mbr ~]# cat /etc/fedora-release
Fedora release 13 (Goddard)
[root@mbr ~]# yum install cyrus-sasl-md5

Loaded plugins: fastestmirror Repository updates is listed more than once in the configuration Determining fastest mirrors YumRepo Error: All mirror URLs are not using ftp, http[s] or file. Eg. 13 is not a valid release or hasnt been released yet/ removing mirrorlist with no valid mirrors: /var/cache/yum/i386/13/base/mirrorlist.txt Error: Cannot find a valid baseurl for repo: base

I tried

# yum clean all
# yum list

View 2 Replies View Related

OpenSUSE Network :: Error From Yast2 HTTP Server - Hostname Not Valid

Nov 6, 2010

I've been running a SuseStudio-built VM for a few weeks with no issues. I built a new one recently, and now I can't configure a new vhost in Apache using the http-server module. It gives me this error. Screen shot 2010-11-06 at 11.42.24 AM.png. Why YaST suddenly decided that my hostnames aren't valid?

View 1 Replies View Related

Software :: Error: Cannot Find A Valid Baseurl For Repo: Extras"

May 7, 2010

i was installing YUM GROUPINSTALL 'DEVELOPMENT TOOLS' but in start i got an error saying "Error: Cannot find a valid baseurl for repo: extras". how can i solve this issue?

View 3 Replies View Related

Fedora :: Error: Cannot Find A Valid Baseurl For Repo: Rpmfusion-free-updates

Dec 31, 2009

I keep getting the following error when trying to install anything:

Could not retrieve mirrorlist http://mirrors.rpmfusion.org/mirrorl...d-11&arch=i386 error was
[Errno 14] HTTP Error 404: Not Found
Error: Cannot find a valid baseurl for repo: rpmfusion-free-updates

So this tells me the servers are down however if i put the link in FF I don't get 404.I am installing on a new box and I can't get the stuff I need.

View 13 Replies View Related

Programming :: Socket Programming In Module Perl

Jul 21, 2010

Where is the perl module for programming with sockets?

View 4 Replies View Related

Programming :: Cannot Install Perl / Tk

May 9, 2010

I just downloaded Tk-804.028 and try to install it (according to the README.linux) but I get:

> perl Makefile.PL
/opt/ActivePerl-5.10/bin/perl-static is installed in /opt/ActivePerl-5.10/lib okay
PPM for perl5.010001
Test Compiling config/perlrx.c
Test Compiling config/pmop.c
Test Compiling config/pregcomp2.c

[code]...

View 5 Replies View Related

Programming :: Perl Tutorial To Use?

May 18, 2011

Any recommendations on what Perl tutorial to use?

View 1 Replies View Related

Programming :: Converting MB/TB To GB In Perl?

Jan 30, 2010

I am taking an input from the user for free and Used capacity in a disk. I wish to convert Input entered in MBTB to GB and this is how i am doing it.

Code:

<some code>
print "Enter Total disk space";
$tot = <STDIN>;
convert($tot);

[code]...

how do i pass the value of conv[0] after conversion back to $tot or $use such that they contain only value which is in GB?

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved