CentOS 5 :: 'AT' Command Fails To Rm From PHP
Jun 18, 2009
I have tried every variation I can think of to get an 'at' to rm a file after a certain amount of time.
echo 'rm -f /var/www/media/images/tempProducts/XYZ.png' | at now + 2 minutes
In php:
$apCommand = "echo 'rm -f " . $sTempName . "' | at now + 2 minutes";
exec ($apCommand);
I have:
- pasted the command into the command line as root and it works fine so it seems to be rights related -- rm gets scheduled and the file gets deleted after 2 minutes
- tried every variation of sudo within the statement including making sure that apache is listed in sudoers
- chmod to 777
- chown to apache
The rm command does get scheduled into the 'at' queue but the rm never removes the file.
at -c (without adding sudo to the 'at' statement)
#!/bin/sh
# atrun uid=48 gid=48
# mail apache 0
umask 22
[Code]....
View 3 Replies
ADVERTISEMENT
Apr 28, 2009
I'm running a fresh install on an intel i7 system on an asus p6t deluxe v2 motherboard with the onboard NIC (Marvell Technology pci-e). I know the NIC is working as when I boot into the onboard OS that Asus provides (Asus Express Gate SSD)I have a working net connection.Booting up CentOS hangs at determining IP information for eth0 and eventually fails with the following error:PING xxx.170.30.1 from xxx.170.31.231 eth0: 56(84) bytes of data---xxx.170.30.1 ping statistics ---4 packets transmitted, o received, +3 errors, 100% packet loss, time 2999ms, pipe 3 failed.
RTNETLINK answers: file exists.
RTNETLINK answers: file exists.
RTNETLINK answers: file exists.
[code]....
View 14 Replies
View Related
May 5, 2009
I'm trying to install a dual booting machine with OpenSUSE v11.1 32bit and CentOS v5.2 64bit. I installed OpenSUSE first and allowed it to install and configure grub in the MBR and after that I wanted to proceed with CentOS v5.2. The installation went fine with two notable exceptions:- when I had to configure grub installation parameters, CentOS offered me only 2 solutions: either install it on the MBR of the first hard disk or not installing it at all. Other distributions are more flexible allowing you to install it in the boot sector of the root partition for example. Because I didn't want to ruin the existent grub onfiguration, I reluctantly accepted not to install it for CentOS assuming that I could manually configure the entry later in grub's menu.lst file.
- when I was presented with the options for software components installation, I've clicked on virtualization category/function because I intend to use the machine as a VMware host. There was no guidance on screen at that point and I blindly assumed that by choosing the virtualization function I would get necessary tools and drivers that will help me further on. It seems that this was a wrong move as you can see it below.
After completing the installation, I tried to search for a template or guiding on how the menu entry in menu.lst should look like but the grub directory was empty, not surprisingly because I've told CentOS earlier not to install it. Using the files in the /boot directory from the CentOS installation I tried to improvise a menu entry but it's not working. The boot stops with famous Error 13: Invalid or unsupported executable format. Using the file command to check what kind of files I'm trying to load as kernels I'm getting :
marte:~ # file /mnt/vmlinuz-2.6.18-92.el5xen
/mnt/vmlinuz-2.6.18-92.el5xen: gzip compressed data, from Unix, last modified: Tue Jun 10 19:20:51 2008, max compression
[code]....
View 2 Replies
View Related
Jul 29, 2011
I am trying to install Centos 5.6 on a motherboard with a built in Marvel 88SE61xx drive controller.NO drive arrays are configured using the Marvel BIOS configuration utility.During the install CENTOS displays loading MARVEL_PATA driver and it waits and waits and waits.Looking on one of the system message screens I get the following types of messages:qc timeoutfailed to identifyI/O errorLink is slow to respondSRST failed errno=16ata4: reset failed - giving upAny ideas as to how to get CENTOS to recognize the drives connected to the motherboard Marvell controller on a NON-RAID configuration?
View 1 Replies
View Related
Oct 2, 2010
I am trying to run though the qmailrocks setup on a centos 5.5 and I am running into an issue when trying to telnet to port 25:
telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
Connection closed by foreign host.
Everything else seems to be working (telnet to 110), and I turned off the firewall entirely, but I still cannot telnet to port 25. I also get a blank error within squirrelmail when attempting to send mail out (ERROR:Message not sent. Server replied: ). I apologize for not going directly to the qmailrocks forum, but they are currently closed down (due to lack of funds). I also am a newbie, so I apologize for the lack of needed information. If anyone has any ideas, please let me know what information you would need.
View 2 Replies
View Related
Apr 8, 2010
i want to change my server to a intel d510mo withoutchanging the installation.The old nstallation runs on a centos 5.4 asus amd board witha sata raid, sata-sil adapter in no raid modus.and that is the problem.i boot the centos on the intel board, and only the sata-sil module is loaded, so noata drive is found.How can i change this? udev? i disabled the scsi-hostadapter in modprobe.conf, but no
View 1 Replies
View Related
Mar 22, 2010
dd if=/dev/zero of=/var/images/abc.img bs=1M count=0 seek=2097152 dd: truncating at 2199023255552 bytes in output file `/var/images/abc.img': File too large
The dd commad fails here saying its truncating if I try same command with less value for seek it works dd if=/dev/zero of=/var/images/abc.img bs=1M count=0 seek=2088960
0+0 records in
0+0 records out
0 bytes (0 B) copied, 2.1e-05 seconds, 0.0 kB/s
Whats the reason behind this and how can this be solved ? Note that there is 3.9T available on disk for the above commands to execute.
View 4 Replies
View Related
May 5, 2011
I have an ImageMagick command that is something like this:
convert "/path/to/photo" -set comment "(c) my company" -resize WxH miff:- | composite -dissolve 30 -geometry +40+138 -quality 80 "/path/to/logo.miff" - jpeg:"/path/to/photo_for_public"
Directory /path/to is mounted over NFS (same network). Some options of fstab that might be helpful:
Both rsize and wsize are 3kB
hard,proto=tcp,timeo=600,retrans=2
Sometimes the imagemagick command fails and produces no file (/path to/photo_for_public might not emerge after command execution). Files might be from 100kB to 10MB. We usually re-run the command for files not generated. Sometimes it fails even twice, so we do it third time (hilariously funny, but even a third run can fail).
Are there any thoughts what may be wrong with my photo-processing setup?
View 1 Replies
View Related
Jul 12, 2010
On Red Hat Enterprise Linux Server release 5.4, I enter the command:net time set -I 192.59.196.66Where 192.59.196.66 is the IP address of a Windows Server 2008 time serverThe response is:/bin/date 071218072010.20 failed. Error was (Success)The actual clock time does not get updated. However, evidently it did really communicate with the time server on 192.59.196.66, because the value in the response 071218072010.20 does correspond to the time on the time server, albeit in the somewhat bizarre format MMDDHHMMYYYY.SS.
View 1 Replies
View Related
May 13, 2011
I have a problem with my filezilla (or my ftp server). When I want to connect to my ftp server (and also other ftp servers!), after MLSD command, I get a "Connection timed out" error.
Log:
Code:
Status: Resolving address of khanemashroote.ir
Status: Connecting to 46.4.196.109:21...
Status: Connection established, waiting for welcome message...
Response: 220 ProFTPD 1.3.4rc2 Server (Debian) [::ffff:46.4.196.109]
Command: USER badihi
Response: 331 Password required for badihi .....
Command: MLSD
Error: Connection timed out
Error: Failed to retrieve directory listing
View 1 Replies
View Related
Dec 26, 2010
I have a custom command I've made to quickly shut down all of my xen instances.
Code:
[root@LCENT02 ~]# virtdown
-bash: syntax error near unexpected token `2'
As you can see it fails when I try to run it on the command line. It is stored in an ~/.env file in my home directory. What is odd to me is if I open the .env file and copy the command from there and paste it into the command line, it does actually work!
Code:
[root@LCENT02 ~]# for i in `virsh list | grep -v -e Id -e --- -e Domain-0 | awk '{print $1}'`; do virsh shutdown $i; done
Domain 1 is being shutdown
Domain 2 is being shutdown
Domain 3 is being shutdown
And this is how I have the command entered into my .env file:
Code:
alias virtdown="for i in `virsh list | grep -v -e Id -e --- -e Domain-0 | awk '{print $1}'`; do virsh shutdown $i; done
Why would this command work if you paste it onto the command line but not use the custom command virtdown?
View 1 Replies
View Related
Nov 18, 2009
I installed FC 12, 64 bit yesterday. I downloaded open office and unpacked it. I then issued the command rpm -Uvh *.rpm this fails due to many dependencies Some of these are:
[Code]...
how to "link" or make these and presumably other libraries searchable.
View 1 Replies
View Related
Mar 8, 2010
Ubuntu Server 8.04. I have 2 servers in the same rack, on the same subnet, using the same DNS servers and build with the same media. On one of them the following command fails
Code:
apt-get install squid
On the other on the package was installed with out any problems. I have checked the /etc/apt/sources.list files and they are identical. Actually, it could not find mutt either.
View 5 Replies
View Related
Feb 19, 2011
Having an odd problem running a mysqldump via crontab. I have the script running on other servers and they work fine, so not sure how to actually troubleshoot, but the script looks like the following;
If I run it as a cronjob as root, it finishes in a second and a 20k file is there. If I run it from the command line as root it does the backup (takes a few minutes) but does complete the backup and can be unzipped and read successfully.
View 3 Replies
View Related
Mar 31, 2011
Here is my script for at command. The intention is to get itself executed every minute.
Code:
logfile=/tmp/attest.log
loginterval=1
[code]....
View 4 Replies
View Related
May 26, 2010
I've writte a small Munin plugin using python, which basically runs a shell command, and write the output to a file. For some reason the script fail quite often, and it seems to be failing at the "commands.getoutput" statement. This is what's leading up to that statement:
[Code]..
View 4 Replies
View Related
Dec 20, 2009
How can I install the dict file to look works?
I am running SUSE 11.1
Here is the error:
View 2 Replies
View Related
Dec 2, 2009
I've successfully mounted a network share with mount.cifs for the past 2 years using fstab with credfile.
[Code]....
Yesterday I moved this system to a new datacenter, but did not alter fstab or the credfile. The //server/share directory has IP rules in place, but this was updated with the new system IP while we moved the system. Now, I am mysteriously unable to automount //server/share. The local error is 13 (permission denied). The Windows server we are mounting returned a code that is defined as "username is valid but password is incorrect" Again - no changes (content or permissions) were made to my credfile or fstab entry. I've restarted netfs a few times, including rebooting the system twice. What is baffling is I can successfully mount //server/share via command line: Code: mount -t cifs //server/share /mnt/mycooldir -o username=foobar,password=1234
The username and passwords are identical in credfile and the mount options - I copied & pasted username / password from the credfile itself.
View 2 Replies
View Related
May 14, 2010
what the command is for the System Tray, so thought I'd ask here. Note I am not asking how to put a system tray on the panel - I know I can add a notification area, but when I reboot there will be 2 of them, so this is not what I want.
I just need to be able to initialise it when it fails to load. Since my upgrade to Lucid, this has happened a couple of times, so expect it will happen again soon enough.
View 8 Replies
View Related
Mar 19, 2011
I have installed Centos in my server and when I take, top -c command its not showing the "command" option correctly. Due to the same, I'm not able to correctly track down the file which causes excessive usage. For eg:
top - 09:30:29 up 72 days, 12:46, 2 users, load average: 0.21, 0.16, 0.15
Tasks: 122 total, 1 running, 120 sleeping, 0 stopped, 1 zombie
Cpu(s): 4.8%us, 0.7%sy, 0.0%ni, 93.5%id, 1.0%wa, 0.0%hi, 0.0%si, 0.0%st
[code]....
View 3 Replies
View Related
Mar 31, 2009
Is this caused by the different version numbers? Is lvm2-cluster going to be updated soon?
[root@localhost ~]# yum install lvm2-cluster
Loaded plugins: dellsysidplugin, fastestmirror
Loading mirror speeds from cached hostfile
[code].....
View 3 Replies
View Related
Mar 16, 2009
All our CentOS servers sync to a windows domain time server and we're migrating to a new CentOS time server. however in testing the setup with the clients I get the following
# ntpdate 10.10.31.211
16 Mar 09:20:46 ntpdate[2646]: no server suitable for synchronization found
checking to see if I can at least query...
# ntpdate -q 10.10.31.211
server 10.10.31.211, stratum 16, offset 17579.121921, delay 0.02591
16 Mar 09:08:07 ntpdate[2606]: no server suitable for synchronization found
so it queried the server and also failed.
View 6 Replies
View Related
May 15, 2011
This is what I get when trying to upgrade PHP from 5.2.17 to 5.3.6.
[Code]...
I did, a few months ago, try to install OpenLDAP, but never got it working. What do I need to do to get PHP to upgrade?
View 1 Replies
View Related
Jul 22, 2010
I'm trying to build the package zaptel on debian, but I'm encountering two errors:
1- When I try to run the "make menuselect" command, I get an error stating that I need ncurses which is missing. I tried to get it installed but didn't get to do it yet.
2- After that, there's the command "make" I think it's to build the package. Yet again this fails, and the error I get is "you do not appear to have the sources for the 2.6.26-2-686 kernel installed".
View 3 Replies
View Related
Jun 30, 2011
I am trying to fix a perl script, and I really suck at perl. But I think this problem will be easy for people who know it.
The problem is, I have an old setup script someone wrote many years ago. It fails if the standard shell is dash and not bash. The only way I've gotten it to work is to point /bin/sh to bash. I looked thru the script and it uses "system" many places, and I think that's the problem.
I searched for it and found this link:url
My plan is to include this function:
Code:
sub system_bash {
my @args = ( "bash", "-c", shift );
system(@args);
}
Then I could simply change all calls to system into system_bash and it should work?
The parameter to the system calls is usually some variable. What if the parameter is a list already? Do I need to test for it somehow, and if it's a list, prepend "bash" and "-c" to the list? How do I do that?
In the script there are lots of places like this:
my $error = system($cmd);
if ($error) {
die/warn "some error message";
}
Shouldn't there be a return in the system_bash function?
View 8 Replies
View Related
May 15, 2011
I have a CentOS 5 64bit cloud server at 1and1. The current version of PHP on it is 5.2.17. I would like to install 5.3.6, which is available from the Atomic repository. I'm using yum for all this but when I try to install the 5.6.3 package, I get the following.
Total download size: 10 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
ERROR with rpm_check_debug vs depsolve:
Package php-ldap needs php-common = 5.2.17-1.el5.art, this is not available.
Complete!
[root@s15 ~]# php -v
PHP Warning: Module 'ldap' already loaded in Unknown on line 0
PHP 5.2.17 (cli) (built: Jan 7 2011 10:39:29)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
[root@s15 ~]#
View 8 Replies
View Related
Apr 22, 2009
I am not able to install xine using yum. Please let me know what needs to be done to resolve this issue
[root@star ~]# yum -y install xine
Loading "installonlyn" plugin
Setting up Install Process
[code]....
I have to make any changes to /etc/yum.repos.d/CentOS-Base.repo file
View 1 Replies
View Related
Feb 4, 2010
I tried to install openwebmail via yum repository as explained in here: [url]
The problem is openwebmail has a dependency on perl-Compress-Zlib that conflicts with perl-IO-Compress that is needed by amavisd and clamav. The error message looks like that:
View 4 Replies
View Related
Sep 15, 2010
I have been using the same kickstart more or less since release 5.2 but it fails with 5.5. It looks like it is good all the way to the final stages. Does anyone know what has changed in anaconda for this release? I think the first boot process has changed as well.
View 5 Replies
View Related
Jul 14, 2010
Anyone know why my fresh installation of centOS server is so slow? Seems like it takes over a minute to execute a command, im not doing anything complicated either. Secondly, how come at times when I type reboot the machine starts to beep, one long loud annoying beep.
View 5 Replies
View Related