0
votes
1answer
13 views

ssh to production to www-data user

I build an automation for deploys, that we connect to our productions servers and then perform a git pull in the project. The project is owned by "www-data" so I need to to --> ssh ...
0
votes
2answers
52 views

Why doesn't xargs on find work with a series of commands using pushd and popd to walk a directory subtree?

On a Linux Centos 4 machine, I am trying to create a simple bash command line to walk a directory structure below an arbitrary current directory and in each subdirectory touch a file, list the ...
0
votes
1answer
161 views

Open new konsole from script, executing command and becoming interactive on conclusion

I want to be able to get a script (ran at startup) to open up a konsole terminal. When it opens it is to do some persistent things (like change directory and source bashrc) and run a long running ...
1
vote
2answers
265 views

Recursively zip files into .cbz-files based on folder in command line

I'm trying to figure out how to write a script to automate creating .cbz files from images in folders on OSX. My directory tree will look like this: /toplevel/ cbz/ comics/ Comic1/ ...
1
vote
1answer
260 views

Rundeck get verbose output of command executing on node

I have Rundeck executing a remote script, which is in python is using print statements to return output normally such as: $ python mytest.py PASS: Condition 1 passed PASS: Condition 2 passed PASS: ...
1
vote
1answer
164 views

launch an automatic action once connected to a specific ssid on OS X

My college requires a local gateway authentication webpage after connecting to their wifi, so I would like to make my macbook pro to automatically run curl with the proper user and password when I ...
-1
votes
1answer
159 views

Can I have 2 folders from 2 different servers in sync one way

Can I have 2 folder from 2 different server in sync one way! I have a Windows server, Server 1 :public server a Windows server, Server 2: local on my network :under NAT The problem is that I get ...
2
votes
2answers
5k views

bash - Sending simulated keystrokes

I've recently been trying to write a script that can be used to automate my c++ program in bash. If you know AutoIt, I can simply show you an example of what I am trying to do: send("1{enter}") or ...
0
votes
1answer
227 views

Convert Setup Script (BASH) To Ask Password Only Once?

I have a script that I use to set up my laptop automatically with all of my settings. I experiment with different Linux distributions constantly on this laptop, so it is very useful to have a script ...
4
votes
3answers
1k views

How do I learn bash shell scripting?

I am a mac user and a web developer and I would like to create automated tools to manage my workflow. Say a single command to start up a type of website. What parts of bash shell scripting should I ...
1
vote
1answer
467 views

Jobs with anacron won't run

I would like to run two bash scripts daily using anacron in order to backup some data. Unfortunately I can't figure out why said scripts are not executed. For test purposes I let cron execute the ...
1
vote
3answers
265 views

Linux: passing commands to CLI using a script

is there any way I can pass commands to the CLI of a tool directly? I would like to script some actions, for example: ./OpenBTS < "tmsis" I do not need to retrieve the results (I watch it in ...
2
votes
2answers
763 views

I would like to write a shell script/rc file that automates GNU Screen splits and starts programs within them

I would like to automate a scenario when I am working on a rails project, and I think screen is the perfect way to accomplish this without having to drag and drop multiple windows after every startup ...
0
votes
2answers
948 views

Running bash script that uses ssh and scp (prompts for password) securely

I am manually carrying out a series of files which involves generating files on my local machine and then copying them over to a remote machine. Currently, I use scp and ssh to perform these tasks. ...