1
vote
1answer
41 views

Ubuntu Upgrade, Perl Version Broke ZImbra

Kind of in a bind here, since I heard about the bash bugs last night I decided on upgrading all off my server, not just the packages but the complete OS, it worked fine on all my servers, except my ...
0
votes
1answer
42 views

masquerade an URL with proxy SSL or other methods

good day dear server experts I would like to be able to masquerade an URL, that is to keep the URL the user is entering when going to a page. For example: The user is entering at his browser: ...
0
votes
1answer
505 views

“yum update” error. How to handle this?

I have an ec2 instance and I'm trying to update all packages. But the problem is when I execute "yum update" it shows the message: Transaction Check Error: file /usr/lib64/perl5/vendor_perl/Cwd.pm ...
1
vote
2answers
550 views

Cpan module install fails

I am trying to install the Inline::MakeMaker Perl module (including Inline::C), but it fails when installing Inline::C (seems it cannot find "make", though make is installed under /usr/bin). This ...
1
vote
3answers
442 views

How to get password prompt from ssh in Perl script

When I execute this from command line, I get prompted for joe's password (which is what I want): ssh -t 192.168.1.32 'scp joe@192.168.1.31:/etc/hosts /tmp' When I try to run the same command from ...
0
votes
1answer
73 views

Safety of concurrent samba writes and perl move

I have samba (3.6.3-0.30.1-2920-SUSE-CODE11-x86_64) running on a SLES11 server which receives files from a Windows machine. The samba share is actually a NFS mount from an other server, and I need to ...
0
votes
1answer
191 views

linux + exit status from perl one liner code

I use perl one liner in my ksh scripts some times its necessary to get exit status from the perl one liner in order to very if perl one liner succeeded or not for example I need to verify if the ...
0
votes
1answer
276 views

Linux how to run a script in the background on a remote server? [closed]

I'm on a linux machine. I would like to run four perl scripts on a remote server. Each script produces a single output file but it can take hours to run. I would like to run the scripts in the ...
0
votes
2answers
65 views

Create a process whose ruser and user are different

Could anyone please help to find a way to create a process whose ruser and user are different? Currently, I used the line sudo su david -c ./test.pl, Then when I type the following line to get the ...
-1
votes
2answers
413 views

linux/solaris insert date & time at the beginning of each line in file

I want to add date & time at the begging of each line in some file I used sed in order to add the date & time before each line in file please advice what I need to update in my sed in order ...
-3
votes
2answers
80 views

perl one liners + add empty line after the last line [closed]

please advice what need to change in the perl syntax in order to add new empty line after the last line? example IP_INFO=12.23.2.1 echo IP= | perl -pe "s/$/$IP_INFO/" 1>>file . ...
0
votes
1answer
230 views

grep to IP address when IP address in parameter

I need to grep to IP address ( as the following example ) , I use ksh script , # ifconfig -a | /usr/xpg4/bin/grep "100\.106\.2\.120 " inet 100.106.2.120 netmask ffffff00 broadcast ...
0
votes
1answer
142 views

grep + match value only if value in the end of line

please advice what is wrong with my code, ( I run this code on both OS linux and solaris ) I don't get the line from: "file ended with .tmp" example: I need to verify if $FILE ended with .tmp ...
-1
votes
2answers
109 views

All Details of a Running Process [duplicate]

Possible Duplicate: How do I deal with a compromised server? This process is running on my Linux server and is sending spam (connecting to port 25 and port 80 with random IP's). top - ...
1
vote
2answers
163 views

Making a user account dedicated to a single script in centos

I am trying to make a SSH login for someone on my box. But when they login I want it to auto load a perl script and for them ONLY to be aloud to see / use that perl script. I only know how to use ...
-2
votes
1answer
121 views

linux + count how many digits in IP address [closed]

I write the following syntax (exist in my ksh script) in order to find how many digits I have in IP address IP_address=127.1.1.1 echo $IP_address | sed s'/\./ /g' | wc | awk '{print $2}' 4 . ...
1
vote
0answers
55 views

Dedicated TMP and AMAVIS

I perfectly configured my server and now I made 2 stupid mistakes, I updated perl along with it's dependencies and I made a dedicated TMP dir and included it in fstab to prevent code execution with a ...
2
votes
2answers
182 views

Runing perl Script using root cron told me “access denied”

This comes from here Now it runs, but when i run it using the root crontab, it told me: *tail: /var/log/backupeitor.log: file truncated /bin/sh: /home/backup/scripts/backupeitor.pl: Permission ...
0
votes
1answer
89 views

Linux/Solaris verification ( after hostname change ) in files according to hostname rule

According to the following Perl command ( this command part of ksh script ) I can replaced old hostnames with new hostnames in Linux or Solaris previos_machine_name=linux1a ...
0
votes
1answer
228 views

perl + sed + remove lines that start with “#”

please advice I have linux and solaris machines, and I need command that work on both OS I use the following perl line in order to remove all lines that start with "#" why perl command not work , ...
2
votes
3answers
172 views

linux + match only VALID IP from text file into other file

please advice how to match only the valid IPs ( 255.255.255.255 ) from the file.txt and insert only the valid IP into VALID_IP.txt file ( see VALID_IP.txt for example ) the solution should be ...
0
votes
2answers
125 views

linux + create host file from CSV file by sed or awk or perl

I have the following CSV file this file defined which Linux machine exist in the system and there ip's my target is to create host file from this file please advice how to create host file as ...
1
vote
1answer
1k views

Configure Perl DBI and DBD in Linux

I am new to Perl and I work in a Linux OEL 5x server. I am trying to configure the Perl DB modules for Oracle connectivity (DBD and DBI modules). Can anyone help me out in the installation procedure? ...
5
votes
3answers
1k views

Cannot run logwatch due to Date::Manip issue

I tried to run logwatch at follows [root@machine cron.daily]# ./0logwatch ERROR: Date::Manip unable to determine TimeZone. Execute the following command in a shell prompt: perldoc ...
0
votes
1answer
974 views

run specific perl script as root under apache

I have a perl program that runs fine when called through the Internet via apache on Fedora Linux server. In that perl script I have a system command which does not run because it needs to be run as ...
2
votes
2answers
3k views

install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC

Having the following error while trying to execute a perl script(For LVM backup). Seeing some DBD module is missing. How would I resole it ? [root@localhost mylvmbackup-0.13]# ./mylvmbackup ...
1
vote
2answers
2k views

Can't install Perl DBD module on Ubuntu (for Bugzilla)

Trying to install bugzilla-4.2.2 on Ubuntu 12.04. When I run checksetup.pl I get the following error: YOU MUST RUN ONE OF THE FOLLOWING COMMANDS (depending on which database you use): PostgreSQL: ...
2
votes
1answer
53 views

perl setting locale failing

Is there any way of fixing once and for all the problem mentioned here: http://www.thomas-krenn.com/de/wiki/Perl_warning_Setting_locale_failed_unter_Debian I keep fixing it by doing export ...
0
votes
0answers
64 views

What causes newlines to be stripped when a buffer is flushed to a full ext3 partition?

We noticed this when we got disk full problems on our log partition. The resulting log files would have many lines concatenated together as if newlines were being stripped. A single line would be ...
1
vote
2answers
3k views

Centos 6, apache mod_perl configured but not working

I just received today my dedi server access, I installed apache: yum install httpd After it, I configured httpd.conf located in /etc/httpd/conf, I modified server name, added server IP, and my ...
0
votes
2answers
336 views

su on perl script doesn't work from crontab

I have a perl script running o.k. on unix machines and manually from root user but not from crontab on linux machine: the problematic command is: su - $user system("su - togui103 -c ...
-3
votes
1answer
66 views

bash + create proccess from function before program ended

the following short bash program described how to execute the func1 by process ( func1 & ) func1 is function that do some tests and verification on Linux machines And this program run after ...
2
votes
5answers
1k views

bash + print line every 10 min in bash

I want to print by echo the following "still in process wait another 10 min" every 10 min Please advice what condition needs to add before the echo command in order to print this line every 10 min? ...
0
votes
1answer
927 views

Can't install Perl module Apache::SizeLimit on CentOS

On a CentOS machine I have installed mod_perl: yum install mod_perl ... Package mod_perl-2.0.4-10.el6.i686 already installed and latest version Ok, now I want to install the Perl module ...
2
votes
2answers
169 views

awk + perl + get two arguments in to awk syntax

please advice what wrong with my awk syntax and how to fix it ( this syntax is in my ksh script ) and I run my script on linux machine my target is to get from the file.txt only the lines that ...
1
vote
3answers
678 views

Perl missing while installing nginx on centos

I am trying to install nginx on my server, however it keeps returning "./configure: error: perl 5.6.1 or higher is required" eventhough I have perl v5.8.8!!!! I have already downloaded perl and ...
7
votes
2answers
449 views

Why are all Linux commands broken after installing Perl?

I installed perl using following command: curl -L http://xrl.us/installperlnix | bash after that i run following command to create soft link ln -sf /usr/local/bin/perl /usr/bin/perl now I'm ...
0
votes
1answer
33 views

what is DDODBC.DAT

The file /var/local/odbc/DDODBC.DAT is being created/accessed on some (not all) servers when the database is accessed via Perl dbi:ODBC. I did a full crawl through /var/local/odbc on a server that ...
-1
votes
1answer
534 views

installation & configuation the Apache 2 on OpenSuse 12.1 - a quick walktrough

experts, good day. sorry for being the newbie - i am pretty new to linux and Apache. i am pretty new to Linux i tried to installl & configure the Apache 2 on OpenSuse 12.1 - here my quick ...
4
votes
1answer
218 views

perl equivalent of sh -e

In /bin/sh and /bin/bash (and I guess a lot of other shells), starting scripts with #!/bin/sh -e (or executing set -e in someplace in the script) would cause the script to abort when any command line ...
-3
votes
2answers
164 views

Rogue perl script

I have a rogue perl script that is running on a Linux box. Is there a way to see where is this script located?
0
votes
1answer
2k views

suexec policy violation: What were these guys up to?

Have just assumed responsibility for a new client's site. OS is Linux. They had a cgi-bin directory below document root. I was looking at my error.log for an issue with a script and found a number ...
0
votes
3answers
228 views

Disable, not unisntall, perl on Red Hat Enterprise 5.X?

So we found that some trojan has been the cause of our two web servers crashing once a week as we found that perl was executing dozens of malicious "gif" files spiking the memory and eventually ...
1
vote
3answers
832 views

LDAP + TLS - different behaviour on two machines

machines: debian wheezy suse 11 commands: ldapsearch -ZZ -h ad.unsw.edu.au -x perl -we "use Net::LDAP; print Net::LDAP->new ('ad.unsw.edu.au')->start_tls(verify => 'require', capath ...
0
votes
3answers
1k views

Bugzilla not sending emails, even to the test file?

I have installed and setup Bugzilla3 for my domain. Everything is working properly except for the email functionality. The server uses Postfix, and that works for my PHP application, and command ...
0
votes
2answers
70 views

Linux - get a report of what programs a command line perl script calls and the files it produces and uses

I have a Perl script that calls about 10 other perl scripts some of which call Python scripts. Each of those produce files which the other programs read. It's pretty complex. What I would like to ...
0
votes
1answer
1k views

Install LWP Perl module on debian + Others

I'm just wondering if anyone can tell me how you install the following perl modules on debiab : install LWP install DBI install DBD::mysql install GD I tried with CPAN although when I ran perl ...
1
vote
1answer
230 views

SSH executed from Perl get SIGSTOP instantly

I have some perl script which executes some commands on remote gerrit server via SSH. It's running on a Debian lenny virtual machin. During several monthes it was executed in the following way: ...
6
votes
4answers
777 views

Script to automatically install packages

I want to write a bash or perl script to install a number of packages on my debian based machine. I want it to be something like : aptitude install package1 aptitude install package2 But, I do ...
2
votes
2answers
1k views

How to use sed, perl to rename files and its contents with a particular pattern in a given directory?

Given a directory "Centos1" which has few files named Centos1.x, Centos1.y, Centos1.z and these files also has "Centos1" in their contents. Using a single command ( using find, sed, perl -pie ) how ...