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


ADVERTISEMENT

Programming :: Getting Perl Simple Recursive Sub?

Feb 16, 2011

This is my sub;

Code:

sub projName
{
print "Enter project name: " ;
$PROJ = <STDIN>;
print "";

[code]....

I can call this routine and it works fine when I enter a valid name for $PROJ. If I enter an invalid name it goes to the else block and prints the statement. However, it does not call itself. Instead the script just exits.I've googled 'perl recursive subroutines' and the example don't appear to be doing anything different.

View 4 Replies View Related

Programming :: Simple Header For Perl Programs?

Nov 5, 2010

i am trying to do something very simple like a header and a footer for my first perl programs, what iam trying to do is that when i create a file in vim: lets say hello.pl , i would like that file to have already this in its header:

#!/usr/bin/perl
and this on the footer:
print "
";

so that i dont have to type everytime #!/usr etc i tried to do it this way but i get weird vim errors: header is a file that contains the header and footer $ vim hello.pl;header > is there another way to do it as a function in bash or some other one liner command?

View 1 Replies View Related

Programming :: Simple Perl Log Code Not Working?

May 25, 2010

I just upgraded servers, and I'm now on 'perl v5.8.8 built for i386-linux-thread-multi' and a simple log script doesn't work. I got it changed to

Code:
#!/usr/bin/perl
use strict;

[code]....

View 4 Replies View Related

Programming :: Python: Simple Message Queues / IPC?

Mar 10, 2010

I have this daemon I'm writing in Python, but I still a Python n00b. I've coded the part of the daemon that does the work, but not the part that receives messages. I need a simple system so that other processes on the same (Linux) computer can occasionally send text-string messages to the daemon (without needing to stay running all the time themselves). Once in the past we did something similar by (mis)using pyliblo to listen for OSC messages coming in on a certain port. That option isn't as workable here because the pyliblo interface (as near as I can tell) requires you to know in advance specifically what messages you are expecting, and forward them to specified functions, rather than just allowing you to generically process incoming messages as you see fit.

View 1 Replies View Related

Software :: Warning Message Or Error When Running Gedit

Dec 28, 2010

Why is it when I run gedit, there are always tonnes of error or warning messages? (Even though my gedit ran successfully)

To name a few:
1. GConf error: failed to contact configuration server; some possible causes are that you ned to enable TCP/IP networking for 0 RBit, or you have stale NFS lockes due to a system crash.
2. Failed to get connection to session: Did not receive a reply among others.

Just to mention again my gedit is running fine though. Is there any configuration that I missed out? or I can disable to avoid these nuisance?

View 1 Replies View Related

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 View Related

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 :: How To Compile / Simple Tutorial For Making Simple Program

Oct 7, 2010

i'm a college student studying pc programing, and i was given today a special work and i have to program using miranda... which i've never used it >.< can anyone give me a hand to where to download, how to compile, and a simple tutorial for making a simple program or something?

View 3 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 :: 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 :: Error Message 'You Must Have Glib Installed'?

Feb 15, 2010

My level is starter with Ubuntu. Moderate experience with C.Problem starting with programming in C under Ubuntu.I have installed Anjuta IDE and made this classical program.

#include "stdio.h"
main()
{

[code]....

View 2 Replies View Related

Ubuntu Servers :: Warning: No Success On Command[/usr/bin/perl Makefile.PL INSTALLDIRS=site]

Dec 7, 2010

I am trying to insall CPAN, apparently I do this by typing CPAN at the command line.After much else, this results in

Code:

**UNRECOVERABLE ERROR**
Could not find gdlib-config in the search path. Please install libgd 2.0.28 or higher.
If you want to try to compile anyway, please rerun this script with the option --ignore_missing_gd.
Warning: No success on command[/usr/bin/perl Makefile.PL INSTALLDIRS=site]

[code]....

View 4 Replies View Related

Ubuntu :: Warning Message Before Swap Is Used?

Jul 28, 2010

Is there any way to set up my system so that, just before I run out of RAM, and SWAP is utilized, I can get a warning message so that I can kill the memory hog before my computer slows to a crawl?I'm a programmer, and it's happened a few times that my programs have memory leaks and run over into SWAP and effectively freeze my system.

View 2 Replies View Related

Ubuntu :: Warning Message In Terminal - Configure GUI

Feb 25, 2010

I'm pretty new to Ubutnu and Linux in general so take it easy on me. I'm a Senior at the University of Houston and part of our final project involves running an application in Ubuntu that was developed by another university. It installs fine, but when I run the command the launch the configure gui I get a strange warning message.

View 2 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

Fedora :: Udev Warning Message At Boot Time?

Aug 11, 2009

i'm heaving the following message at boot time: "Starting udev: udevd[114]: unknown key 'DEVTYPE' in /etc/udev/rules.d/70-cups-libusb.rules:6", i guess it's something about usb printing support but i am not sure, and i don't know how to fix it, does any of you guys know what this exactly means and how to fix it

View 6 Replies View Related

Fedora Security :: Unusual Warning Message Asking For Password?

Apr 9, 2011

Sometimes when I try to open some chat application i get a strange warning message asking for password. The message is that /usr/libexec/mission-control is trying to gain access of the system, please provide the password. On top of the message box it shows "Unlock Keyring".

This very weird, as I am also unable to do a print-screen when this message box is up.

what this message is all about and what does the executable /usr/libexec/mission-control do?

I am using Empathy as my chat application

View 2 Replies View Related

Software :: Accept System Call Warning Message?

Jan 7, 2010

im writing a simple socket program and im getting below mentioned warning msg. what does it mean and what i have to do to avoid this warning ??

/usr/include/sys/socket.h:214: note: expected 'socklen_t * __restrict__' but argument is of type 'int *'

View 1 Replies View Related

Programming :: Fortran OpenMPI-1.4.1 Installation / Compiling - Error Message Saying Mpif Not Recognized Command

Feb 4, 2010

I've installed openMPI-1.4.1 on my laptop and I'm trying to compile some fortran code I've written using MPI. I downloaded the openMPI-1.4.1 file from the openMPI website and used the shell script they provide to install it. This is the shell script:

shell$ cd openmpi-1.4.1
shell$ ./configure --prefix=/usr/local
shell$ make all install

There was an additional line extracting the tar file, but I did this by hand. The first time I ran this script there was an error on the final stage saying that a directory couldn't be created because of lack of permission. I decided to run the script again this time as a sudo.

Having run the script again everything appeared to install properly, however when I went to compile some fairly simple code I got a message saying that the compiler couldn't find MPI. I was using this command: gfortran messages.f90 -o messages I looked on the openMPI website where it recommends compiling with a compiler called mpif. However when I type mpif messages.f90 -o messages I get an error message saying mpif isn't a recognized command......

View 2 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

Fedora Networking :: Getting Message - WARNING - Probably Rcvbuf Is Not Enough To Hold Preload

Feb 28, 2010

I am getting the following message

WARNING: probably, rcvbuf is not enough to hold preload.

When i try to adjust the mtu to the router (1400) config

What is wrong about message? if i change to a low value, like 500, the message it doesn't showed..

View 1 Replies View Related

Fedora :: 15, Gnome Disappeared \ Warning Can't Start Display Message?

Jun 23, 2011

Just installed F15, was everything fine, but then gnome got away, from terminal I have<gnome-session:1951): Warning can't start display message.Before that I put in config file one extra line to start tint2 like <sleep 3 && tint2.Not sure was it the reason?

View 4 Replies View Related

Security :: Attack Warning In Logwatch Message: Loopback Relay

Dec 14, 2010

I'm not concerned about this since this traffic is generated from the loopback address, but would like to find out what it is.

[code]...

View 1 Replies View Related

Software :: Why Gcc Make Warning Message Don't Show Color Font?

Mar 16, 2009

rencently, i move develop env from one linux machine to another, two linux have same gcc and make version, but at new linux machine make warning/error messages dont show color font.so, when make, there are all white messages, i cant focus on warning and error.

View 2 Replies View Related

Slackware :: Warning Message During Kernel Boot - All Configuration Files Need

Mar 12, 2010

I recently did a fresh install of current and once I had it up and running I compiled a fresh 2.6.33 kernel using my old config file, but now I get this warning durning boot, specifically during module loading WARNING: All config files need .conf: /etc/modprobe.d/sound, it will be ignored in a future release. This doesn't seem to be causing any problems but I am curious to know what the message meams? I checked /etc/modprobe but everything looks normal.

View 1 Replies View Related

Fedora Security :: Send An Email Using Evolution The Message Was Not Sent But Returns A Error Message?

Apr 30, 2009

Hi I am running a fedora 10 desktop. when i send an email using evolution the message was not sent but returns a error message:"Error while performing operation.DATA command failedError: 550 Viagra SPAM - Hi in Subject" and the message did not have an attachment just plain words. what might have gone wrong for i have been using this for sometime without a problem. or what security measures should be in place to remove this viagra spamAm I infected by virus on this fedora, all my updates are up to date.

View 1 Replies View Related

OpenSUSE :: Click On Install Get The Following Error>>Message Did Not Receive A Reply (timeout By Message Bus)?

Nov 10, 2010

Im trying to instal Sun Virtualbox but when download completes and I click on install I get the following error>>Message did not receive a reply (timeout by message bus) I wont even bother with this software if there are others out there that are as easy to use. I used it on Windows and thought it was great ! (thats how I eventually switched to Linux, by using it virtually at first)

View 5 Replies View Related







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