Ubuntu :: Execute Perl On Server?

Jan 7, 2010

what is wrong i have a web server setup and working fine running a web store in php i have added a search engine for the web the easiest setup programme is with an extension .pl when i try and execute this it asks me if i want to download it or open it i had this problem with the php script which a reboot sorted out so i have tried rebooting but get the same problem does anybody know how i can get it to execute on my server?

View 2 Replies


ADVERTISEMENT

Programming :: Write A Perl Script Which Will Give An Interactive Session To A User To Execute Command On The Server

Feb 25, 2011

I am trying to write a perl script which will give an interactive session to a user to execute command on the server. I have written a small script to do this :

Code: !/usr/bin/perl -w
use strict;
use Net::SSH::Perl;
my $host = '192.168.1.1';
my $username = 'user';
my $login_passwd = 'test123';

[Code]...

View 2 Replies View Related

Ubuntu :: Execute System Command With Perl?

Jun 13, 2011

i want to execute system command with perlm but it gives me error.

command is wmic client. here it is

#!/usr/bin/perl
open (EP, "/home/user/Templates/domainpc.log");
while (<EP>) {
chomp;

[Code]....

View 1 Replies View Related

Ubuntu Servers :: Make Execute PHP And Perl Scripts?

Jan 1, 2010

How would I make my server execute PHP and Perl scripts? (I'm going to be working with both)

I have PHP5 and the latest Perl installed, and my installation is fresh.

Code:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
code....

View 1 Replies View Related

General :: Why Does Perl Execute Bash Scripts

Mar 23, 2011

I'm playing with perl and found that I could just go:

"perl /home/me/bash_script.sh"

and it would execute, even though it's not a perl script. Is that just a feature or is there something I'm missing? Why does perl do this?

View 2 Replies View Related

Programming :: Simultaneously Execute All Perl Scripts Within A Folder?

Apr 27, 2011

Is it possible to simultaneously execute all perl scripts within a folder? How?

View 1 Replies View Related

Programming :: Perl One-lines Within A Ksh Script In Aix Environment Not Execute?

Jul 19, 2011

I have a script to utilize the perl one liner to replace a ip address.

Code:

#!/usr/bin/ksh
set -x
PRIP=172.15.100.176
OPRIP=172.15.100.115

[code]....

the script runs fine. but the perl one liner seems not working at all. but if i copy the perl line to a command line, it runs correctly.

View 2 Replies View Related

Software :: Ubuntu - Apt Libxml-sax-perl - Unable To Execute Installed Post-installation Script

Jul 16, 2010

I had a problem on ubuntu when running "sudo apt-get dist-upgrade" and wanted to report how I solved it. Hopefully this helps anybody with similar problems.

I always got the error message:

Code:

The problem is in libxml-sax-perl.postinst which does not seem to be executable.

I did not install any perl packages manually by cpan and found the solution in http://ubuntuforums.org/archive/inde...t-1342009.html where it was only one part of a bigger problem.

I created a backup file (always a good idea) of my libxml-sax-perl.postinst:

Code:

I deleted the old file:

Code:

Created a new file:

Code:

With the following content (copied from the link mentioned above):

Code:

View 1 Replies View Related

CentOS 5 Server :: Move 5.5 To /usr/bin/perl So Root Based On Perl 5.12.1?

Aug 11, 2010

I am new here and want to lern CentOS. Current I have installed CentOS 5.5 x64 and Perl 5.8.8. Now i have install Perl 5.12.1 which located to /usr/local/bin/perl. But how I can move it to /usr/bin/perl so root based on Perl 5.12.1?

View 7 Replies View Related

CentOS 5 Server :: Unable To Give "Perl Path" To Run Perl CGI Script

Jun 2, 2011

I am unable to run perl-cgi script in my cent os Apache server. I have used locate perl command in terminal window and it gives following result:

[code]....

tell which is the path to perl for example "usr/bin perl"

View 13 Replies View Related

General :: Mount The File Server Share On Application Server And Execute

Jan 8, 2010

i have purchased sun server for my visualization project. Request you to help me finding the io for disk .I have put storage(disks) on different location (File Server) and on server (Application) i have configured 4 virtual machines.

How would i monitor the io for file server from the Application server where i have configured 4 virtual machine. one way to mount the file server share on application server and execute

dd if=/dev/zero of=/share/test.out bs=1024 count=1024 to check the read and write Is there any other way of doing this.

View 1 Replies View Related

Ubuntu :: Switch Back To /usr/bin/perl After Installing Second Perl?

Aug 14, 2010

I recently reinstalled the B module for perl. Now I found out it didn't just do that, it installed a whole new copy of perl into /usr/local/bin/perl. When I type 'which perl' at the terminal, it says '/usr/local/bin/perl' instead of '/usr/bin/perl'. Normally, this wouldn't bother me. But I installed the one in local/bin without threading support. The one that comes with the system already is build with threading support, which is why I want to switch back to the system perl, and possibly remove the one in /usr/local/bin.

So how do I change it so that the result of 'which perl' returns as '/usr/bin/perl'? And what do I have to do to remove /usr/local/bin/perl?

The reason I need threading support is because I'm designing a file copier that copies several chunks of a file simultaneously to speed up the copying process. Guaranteed a useful script if it works.

View 7 Replies View Related

Ubuntu :: Headless Server Won't Let Me Execute Exe

Jan 22, 2011

I have now had an Ubuntu desktop server on a very crappy server (network filesystem with enourmus latency) for a year and as the subscription will soon run out I opted for a slightly better one, still crappy but at least a "complete server" (cpu+mem+HD).And a headless installation of Ubuntu Server 10.10 "Maverick Meerkat" instead of my Desktop version.I'm not using it for web pages or other 'ordinary' things though, I'm running my homemade MMORPG off of it and this new headless situation is a bit unclear to me.

I created an account and password with my root account, a folder with the username was created in /home/ and I uploaded my mmorpg executable there with an ftp client.I tried to change the whole folder (being root) to 777 but it didn't work either.

View 7 Replies View Related

Debian :: Launch The Perl Config \ Seems To Be That It Does Not Regonize Perl?

Jul 7, 2010

I am trying to launch the perl config, but when I do so I can an weird error.It seems to be that it does not regonize perl ?

conf.pl: line 11: =: command not found
conf.pl: line 19: my: command not found
conf.pl: line 20: syntax error near unexpected token `{'

[code]...

View 2 Replies View Related

General :: Execute .jar Files In Ubuntu Server?

May 19, 2011

I have a .jar file named "server.jar". In windows it executes on simply double click on it but I want to execute it on the server and I don't know how to do it??? I have Filezilla to upload any file on server and putty for cmd prompt. where i have to upload my file on server and hoto execute it.

View 3 Replies View Related

Ubuntu Servers :: Install Libmd5-perl On Server 10.04?

Apr 20, 2010

Trying to install libmd5-perl on Ubuntu server 10.04 beta 2! It says there is no candiate version found for libmd5-perl

View 6 Replies View Related

Server :: Perl Cgi Configuration Under Apache2

Sep 14, 2010

I want to learn perl CGI. I tried to configure it on apache server. But when I was searching about it in the net, I faced some difficulties. Each and every post has been leaded me in different way. I am confused now. I have done this,

1. Installed this libapache2-mod-perl2 module

2. Then I checked the /etc/apache2/mods-available/ using ls command for checking the module availability.Here I mentioned the output of ls command.

[Code]...

View 2 Replies View Related

Software :: Developing Own Web Server Using Perl

Sep 20, 2010

I would like to develop a simple web server that can serve web pages using perl. I know there are lots of web servers in the market. But I want to understand the concept underlying working of a web server. Please provide me if there are any good links available for this.

View 4 Replies View Related

OpenSUSE :: Difference Between Perl And Perl-devel?

Jun 28, 2010

I'm new in perl programming and linux OS. What is the difference between perl and perl-devel? What does mean devel? Iwant to install Catalyst and before install as required I have to check if make, gcc and perl-devel are installed in my system. make and gcc are installed. But I have to install perl-devel. First I searched for make, gcc and perl-devel in YAST Software Management and search did not find perl-devel. I visited the software.opensuse.org and wrote "perl-devel" and searched. The result was many similar zips with a prefix perl-devel and I can not choose one for needed perl-devel.

[Code]...

View 5 Replies View Related

Ubuntu Servers :: Server Refuses To Execute A File?

Feb 28, 2010

started setting up my 3rd ubuntu server under the OS of Ubuntu Linux 9.04 64 bit. I have configured the server to allow root access and am using this to execute this file. As you can see from the screenshot of PuTTy, the file exists but is refusing to load up. I am also able to nano the file. I have tried moving the file to /root/ and still had no luck.

View 3 Replies View Related

General :: Run A Perl Script Automatically After A Ubuntu Server Has Booted Up?

Jun 21, 2010

I wrote a Perl script which will serve as a daemon, so I'd like to let the OS (in my case, Ubuntu Linux) automatically run my Perl script after it has booted up.

How can I do that?

View 1 Replies View Related

Server :: Each Command Takes For Ever To Execute

Sep 12, 2010

I am trying to use a freshly installed kubuntu 10.04.1 LTS and am having major problems with delays in command execution. The box worked fine after installation. I then brought it to the client and it was fine for another day or so. Now, most of the commands I run take up to five minutes to execute. An 'ls' or 'top' will run straight away but and 'ssh','rm' or 'sudo apt-get' will just sit there for ever:

[Code]...

A reboot changed nothing. The shutdown was immediate so 'shutdown' is another command that works properly. The load of the box is '0', I used team viewer to see if I got the same problem from the LAN side rather than the WAN. It's the same. I thought it might have been the disks that had spinned down but it would have sped up after the ssh connection. After further analysis, it looks like this could be an authentication problem. The problem shows once the ssh password is validated and when we use sudo. Could this be related to the installation of samba3?

View 1 Replies View Related

Server :: Call A C Function Or To Execute A C Pgm O/p From Php?

Apr 6, 2011

how to call a c function or to execute a c pgm o/p from php file and this output should be displayed in the html page ? I have tried with system() and exec()but its not working.

View 2 Replies View Related

Server :: PHP Doesn't Execute The Modules

Jul 12, 2009

I'm under CentOS 5.2 with PHP 5.2.10 I compiled PHP from Source with ./configure --with-config-file-scan-dir=/etc/php.d but PHP doesn't start modules A PHPInfo says:

Scan this dir for additional .ini files (none)
additional .ini files parsed (none)

routes are correctly setted and the user have permissions for read the directory, just to be sure i changed the CHMOD to 777 but nothing.

View 1 Replies View Related

Server :: Execute Scripts At The Start-up?

Mar 10, 2010

I had some command lines that I want to execute them with the server goes up. how can I do that?

View 2 Replies View Related

CentOS 5 Server :: Can't Execute Some Commands?

May 22, 2009

I am trying to determine if I should upgrade PHP's PEAR on my server. I am trying to check the version of PEAR currently installed. I am getting the following error when I use the pear -V command:Warning: realpath(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s)(/usr/share/pear:/usr/share/php) in System.php on line 459I tried adding /tmp to my php.ini file, but then when I use the pear -V command it doesn't do anything. I do not get any errors or anything.I am also trying to install symfony and have the same situation described above when I use the following command: pear cannel-discover pear.symfony-project.comDoes anyone have any thoughts? If not the solution, does anyone have any suggestions on how to begin troubleshooting this?

View 2 Replies View Related

Server :: Running A Shell Script With Perl?

Jun 27, 2009

quick guidance on running a bash script using Perl. The script is calledarchive_web.sh.The regular script I have and use now (archive.sh) creates an archive directory (uses the current date as the dir name) and moves all existing files there.The script is cronned to run every day before midnight. I'd like to be able to run this "archiving script"manually, from the web, at my own discretion, rather than necessarily wait till midnight (but want it to run then, too, in case any new files present themselves in the directory).These shell scripts sit in an .htaccessed directory. Talk about making up verbs all over the place.

View 1 Replies View Related

Software :: Install Apache Server For Perl And PHP?

May 29, 2009

how to install Apache web server as I want to run my Perl and PHP scripts in web environment. what configuration I need for Perl and PHP. Does I also need some separate software/package/module for perl and PHP? I have experience of running ASP scripts with IIS in Windows environment but have no idea of Apache in Linux for Perl and PHP.

View 4 Replies View Related

Software :: Perl Script To SSH Into A Server And Sudo?

Sep 30, 2010

I need to create a perl script to SSH into a list of servers, and run a command as sudo. I tested with this script:

Code:
#!/usr/bin/perl
use Net::SSH::Perl;
$host = "server.name.com";
$user = "jhyland";

[Code]....

And that doesnt even successfully login. I doubt that the NET::SSH::Expect is my fault, due to the fact that script actually has a typo in it right from the cpan website, so I doubt it was ever even tested.

basically.. I need to shell in, then either sudo httpd -S, or sudo su -; httpd -S

View 1 Replies View Related

CentOS 5 :: Can't Execute Things In /tmp Now But Is There A Way To Execute Only One File And No More?

Feb 17, 2011

i created a /tmp partition amd mounted it like this:" mount -o loop,noexec,nosuid,rw /usr/tmpDSK /tmp"
I know i can't execute things in /tmp now but is there a way to execute only one file and no more???

View 1 Replies View Related







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