Tagged Questions
1
vote
1answer
82 views
How to run java service as a non-root user on CentOs 6
I have a script that starts a Java application as a service on CentOS 6:
#!/bin/sh
# chkconfig: - 80 20
SERVICE_NAME=cn4server
PATH_TO_JAR=/usr/local/share/myserver/cn4server.jar
...
1
vote
1answer
56 views
Why isn't this XMLStarlet Query Working?
I'm trying to write a simple bash script that parses price info from the ebay developer API search results. Here's an example of XML search results for "Detective Comics 700":
...
0
votes
1answer
57 views
Is it possible triggering a script with a change of amount of files in a directory? [duplicate]
Is it possible to create some kind of directory watcher and trigger a script when the folder is not empty?
I have a CentOS machine with jenkins CI on it. i would like to create a job that will move ...
1
vote
1answer
440 views
Can Start Service With init.d script, however doing service <SERVICE_NAME> start does not work
I am running CentOS 6 and I am trying to get my Oracle database to run at startup. I have been following these steps:
...
2
votes
1answer
447 views
Differences between %pre and %post in Kickstart on CentOS?
I have been setting up machines with Kickstart on CentOS and I am unsure about the differences between the %pre and %post sections of the kickstart .cfg file.
The CentOS Documentation for the ...
2
votes
1answer
60 views
Why does AWK not like dots in one of two substitutions?
I'm trying to use AWK in a bash script to look for a placeholder string in a template file and replace it with the contents of a variable that (can) contain various special characters.
Example:
...
0
votes
1answer
203 views
Similar method to /etc/init.d
I have set my script to run using the /etc/init.d method. All works good. The problem is that my script does packet capturing and when it restarts the machine after say the crond is loaded then it ...
2
votes
2answers
257 views
Commands for determining level of usage of server
I am scripting a new program that will connect to a cluster of machines in a VM park, and hopefully check their level of usage.
The VM clients are a combination of RHEL and CentOS, and runs on ...
27
votes
7answers
1k views
What's the equivalent to && when writing a bash script?
I apologize in advance if this is a duplicate question. I did make an effort to search/check before asking here.
I'm comfortable with writing one-liners like this:
foocommand && ...
2
votes
1answer
380 views
Script for courier maildir folders on CentOS LAMP environment
I'm looking for resources to help me build a script to do monthly maintenance of maildir folders for a typical CentOS LAMP VPS hosting environment.
I would like to run a script that runs from a ...