1
vote
1answer
46 views

Difference between “crontab -e” & editing crontab file manually? [duplicate]

I noticed some people use "crontab -l" to view cronjobs and "crontab -e" to edit them. However there are also times where people manually modify "/etc/crontab" to view/add/remove cronjobs. Both ...
1
vote
0answers
51 views

Implementing and testing a Subversion hook

Background I'm trying to implement a number of commit hooks for Subversion. I have done a lot of research to try and get a simple test hook to work, however I have had no luck. For reference I have ...
0
votes
1answer
230 views

JBoss EAP 6.2 on RHEL 6: ./bin/init.d/jboss-as-standalone.sh hangs while calling via SSH

I'm using jboss-as-standalone.sh to manage JBoss EAP standalone as a service. I can start/stop the service with "service jboss-as-standalone.sh start/stop" while I'm on a terminal. But I would like ...
1
vote
0answers
18 views

SNMPget and bash gives strange results (gauge32 values incorrect)

Reallly strange to me but here is the problem. If I use an SNMP client such as ManageEngineMibBrowser to query the appliance I get what look like reasonable Numbers: dpStatusMemoryStatusUsage.0 97 ...
0
votes
2answers
60 views

This script won't execute on startup, ideas?

The distribution is RHEL 5. The script has been added to chkconfig like so: # chkconfig --add script # chkconfig script on But it refuses to start when taking up the machine, what could be the ...
0
votes
2answers
96 views

What seems wrong with this bash script? [closed]

I found an initscript that for some reason insists on starting the specified application as the root user. I can't wrap my head around why it is doing this, any hints? The script runs on Redhat ...
0
votes
1answer
91 views

Running drupal as root in order for it to run bash scripts

I store a website on redhat and using drupal. There is a button on the site that activates a php script and that php script use exec to activate bash script on the server. Right now the script is not ...
0
votes
1answer
443 views

Lftp: error handling for server down

How can I check if the server is down or any other connection errors while using LFTP and then email once such error has occurred. did something this to make it work. Is this the correct/best ...
1
vote
2answers
170 views

How to open http for linux server

I am a Windows (IIS) software engineer, but recently I've been thrown into a Linux server admin role until we can find someone to fill the position. I am not ashamed to admit I have no idea what I am ...
1
vote
1answer
946 views

How do I correctly SSH port forward using LiveReload on Redhat?

Referencing this page: http://feedback.livereload.com/knowledgebase/articles/86280-if-you-edit-files-directly-on-your-server It says you can remotely port forward the LiveReload specific port of ...
1
vote
1answer
53 views

Run command on bash output delimited by space

~]$packageManager list packages gives back wordA1 wordB1 wordC1 wordA2 wordB2 wordC2 wordA3 wordB3 wordC3 I then want to run a second command on all B-column words, e.g. ~]$packageManager ...
0
votes
1answer
98 views

delete all files on all nodes on a RedHat cluster?

I am developing a program that runs on a cluster and writes a lot of short bits. First, it outputs to the node's scratch directory; when it is done, it rsyncs the files to a hard drive and then ...
3
votes
2answers
571 views

sudo -i but keep current working directory

When use sudo -i I will simulate login as root, and current working directory will be jumped to /root. Is it possible not to jump and keep the working directory unchanged?
0
votes
2answers
818 views

Why does “sudo su - X” require password, but “sudo -u X bash” doesn't?

I know "why" questions are dangerous :) I have sudo access on RHEL, and noticed this: su -u fred su - Password: (I don't know fred's password). sudo -u fred bash [fred] $ Is there a way to not ...
1
vote
3answers
2k views

Time+ (CPU Time) column in top command is incorrectly reporting

The Time+ column in my top command is not reporting the correct time for a running php script. It fluctuates up and down first reporting something like TIME+ 22:39.35 php And then three seconds ...
5
votes
2answers
228 views

Any repercussions from not using default primary groups for Linux users?

We were thinking of not using the default primary group for our RHEL users. What I mean by default: User: melbin Primary group: melbin We will instead do something like: User: melbin Primary ...
2
votes
1answer
122 views

How to determine the date a package was installed or updated?

Is there a way to determine the date a package was installed or updated? What's the proper syntax for both rpm and dpkg?
1
vote
1answer
192 views

Redhat 5 Upgrade / Sphinx Search Init Startup Hangs

I recently upgrade a VM to Redhat 5 and moved Sphinx Search to that server. For some reason when I try to start Sphinx, the startup script fails to push the searchd process to the background. I ...
0
votes
1answer
410 views

How to update bash

I'm struggling to update bash, yum update bash doesn't find anything and a search displays: bash.i386 3.0-19.6 installed on Red Hat Enterprise Linux ES ...
1
vote
4answers
6k views

How to add a linux user in single line?

Is there any option to add a user in single line. it includes the password. Dont prompt anything. OS=RHEL 5.5
-1
votes
2answers
218 views

Where can i find the advanced home dir backup scripts

Is there any script for linux which can backup the home directories and mysql databases in separate directories . i mean best of all scripts which is general and any one can use that one. By backup i ...
1
vote
1answer
410 views

how to source with sudo -u

Redhat Linux using Bash I login in as myself sudo to another user sudo -u bash I want to call a bash_profile when I do this. When I run this, I get the following error bash: ...
1
vote
4answers
731 views

How to set up “vi” shell environment as default

It could by silly question, but I can not find answer anywhere. So, I'd like to use vi (you know set -o vi can do the trick) as default in my shell instead of emacs, but I do not want to put it into ...
0
votes
3answers
381 views

fedora 13 init.d script, can’t stop

I wrote init.d script that suppose to run java CLI proccess. The problem is that when i stop it, i get [failed] and the proccess is still running. thanks #!/usr/bin/env bash # # chkconfig: 345 ...
1
vote
2answers
541 views

Multiple Users use Script to Access Remote Server via Passwordless SSH

I am currently setting up a linux box that is tied into Active Directory. This box will allow users to SSH into it with their AD username and password to gather information (Box A). The issue is I ...
4
votes
2answers
3k views

On Redhat, what does “kernel.suid_dumpable = 1” mean?

I'm running a bash script to copy some log files and then restart a service on a Red Hat box. Every time I execute the script, I get the following on my console: [root@servername ~]# sh ...
1
vote
1answer
975 views

How can I script a download from Windows File Sharing?

Given a set of XML files available on a Windows Share \\server\share contains spaces\direcory\, I need a bash command to download one specific file from that share. Neither wget nor curl support any ...