1
vote
1answer
324 views

How do I create a one time use startup script on Linux - Centos 6.x

I want to set a script that will only run one time on a Centos 6.x box and then never run again, since it's going to set some system options based on hardware and then it's all set.
0
votes
2answers
118 views

How to SSH multiple service with a for in SHELL?

I would like to access some server via SSH, run some commands and exit. Do this for lots of servers. I know I can do this for one machine only, with this script : ssh **IP** << EOF chown -R ...
1
vote
2answers
2k views

How create a service correctly?

Here it's what I do: 1) create an user some_deployer 2) then create a folder to script like /company/script/<service name> 3) in this folder I create the start.sh and stop.sh scripts and ...
5
votes
2answers
233 views

How to delete group of folders based on name and date

I have a folder structure like this. folders test1 test2.1 test49.85 test4.95.89 sample support util These are all folders. I need to delete all folders that begin with ...
2
votes
2answers
2k views

Running .sh file CentOS6

I have a script for installing a program. https://github.com/mkonecny/airtime_centos/blob/master/centos.sh When I try to run it I get: 64-bit installer only LANG=en_US.UTF-8 install/uninstall ...
0
votes
1answer
575 views

Run a shell script in an existing terminal session

I'm writing a script to deploy a project to multiple servers (9 and counting). With compression, copying, and remote connections, the script is rapidly becoming fairly slow. So now I'm investigating ...
0
votes
2answers
106 views

Script that deletes a directory but doesn't delete marker files on linux

I got a script running and its cool and all. Any idea how to make this script run under just 1 level of subdirectory? #! /bin/bash #This will delete the sub-directories of a specific directory when ...
0
votes
1answer
77 views

Script execution flow stopped?

Now my script is able to start server, But I am still have some problem with my script. When the start server command is executed, the control does not pass the line and does not execute further of ...