A script is a sequence of commands or instructions that are executed by an interpreter program rather than compiled into a standalone executable program.
-2
votes
0answers
38 views
Unix script to connect 4 different servers [closed]
Possible Duplicate:
Automatically run commands over SSH on many servers
I need to create a script which will connect 4 different servers one by one, and check if the server is running then ...
2
votes
2answers
35 views
Parse apache logs to exclude IP ranges
I need to look for some requests in a huge pile of apache logs. My only requirement is this:
I need to only view the requests coming from any IP address that is NOT included in a list of 50 IP ranges ...
0
votes
2answers
54 views
Why does this fail as crontab but works as script [closed]
Possible Duplicate:
What’s wrong with these two cron job’s?
I want to print a formatted output from a file containing lines of date, time, long number, and long number. I set LC_NUMERIC to ...
2
votes
3answers
64 views
What is the difference between ./script and . ./script? [closed]
Possible Duplicate:
Using ‘.’ to execute files in bash
I was trying to figure out how to export my environmental via script instead of changing my .bashrc file.
I found this old useful ...
0
votes
1answer
88 views
How to effectively use bash scripting (different cost reductive ways and good habits)? [closed]
This is one of the most perennially important questions. How to effectively script ? What are the bad ways and what are the good ways ? I know of some, which i will point out here. If anybody does ...
2
votes
1answer
66 views
Open url and fill form automatically
I'd like to create a script to open an url and fill some forms. I don't want to save the form data on the browser, so I think that this script would be a good solution for me.
Any help?
I know how ...
1
vote
3answers
82 views
Need a loop to sleep for a fraction of second
On my machine I need to execute a cycle that iterates 1 simple command that must have a delay expressed in fractions of second.
Let's say that I need:
to save a file with an increasing enumaration ...
2
votes
0answers
44 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 ...
2
votes
1answer
47 views
detect if key is pressed from script
I would like to detect if a key is being pressed when running a script. I have the following script:
#!/bin/bash
sleep 0.5
xte 'str sometext'
I run this script using a shortcut to paste "sometext" ...
1
vote
2answers
48 views
Login to super user for running script
I have sample.sh script in /u01/dump location. I'm running it from root.
My requirement is while running the sample.sh script it has to be login as oracle1 user using SU (super user) and display all ...
2
votes
1answer
56 views
How do I ensure outbound TCP/IP traffic always uses a VPN, even when using Wifi?
I'd like to ensure that my VPN is started and running, before any TCP traffic from any of my background services send or receive data. How can I guarantee that this is the case?
How do I handle ...
1
vote
1answer
32 views
How to manage getops argument assignation
This is my first question.
I'm trying to make a small script with options and I'm using getopts to do it. The weird thing is:
The argument don't get assigned to the variable or it always enter the ...
2
votes
1answer
77 views
Download file linked in MySQL DB, extract text and insert into db with bash script?
I want to download a file (only download if the url ends with a certain string), which URL is in a MySQL database, extract the text and write the text to the database, by replacing the url.
And this ...
0
votes
1answer
107 views
Shell script to recursively grep data from certain files in the directory and return values to file [closed]
I am making a simple shell script which will minimize the time I spend in searching all directories under a parent directory and grep some things inside some files. Here's my script.
#!/bin/sh
...
1
vote
0answers
92 views
Quickly check whether many network hosts are up-and-running
Objective: check if a host is up-and-running on the network,
with a method that can be efficiently parallelized over many hosts.
Emphasis on a QUICK turnaround of the check.
Reason to emphasise ...