03-03-2011
Right I did see everyone talking about that program. I will have to look into that. I just wanted to also learn scripting to aid me in my job. But yeah that program seems like a very good solution!
Thanks
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a script that runs the grub-md5-crypt command based on whether the pass_value variable is a non-zero string. The md5 hash is being created in the /opt/hostconfigs/$HOST file, but I can't echo $md5_value. It is blank. Is there a way to create and echo a md5 hash variable?
if
then... (1 Reply)
Discussion started by: cstovall
1 Replies
2. Shell Programming and Scripting
Can anyone direct me to a resource that explains scripting in simple terms?
I have visited many sites and browsed this forum and have yet to find simple explanations. (8 Replies)
Discussion started by: rocinante
8 Replies
3. Shell Programming and Scripting
Hi
I want to write a small script that will create folders named from `AAAA' all the way to `ZZZZ'.
That is:
`AAAA'
`AAAB'
`AAAC'
...
`AABA'
`AABB'
`AABC'
...
`ABAA'
`ABAB'
`ABAC'
...
`ABBA'
...
`ZZZZ' (4 Replies)
Discussion started by: ksk
4 Replies
4. Shell Programming and Scripting
I have several unix servers,
I need to logon to each server and find out if an id exists on that server.
I need a simple script for this, i have come up with the following script, but I cannot bring the output of a child process on the remote server.
for i in `cat SERVER_LIST`
do
ssh $i... (5 Replies)
Discussion started by: ramky79
5 Replies
5. Solaris
I have a local account for a unix server. The idle timeout for the account is around 10 mins. I have to login to the server multiple times during the day. Is there a way to increase the idle timeout or may be a script that I can run on background so it is not idle. Something like echo date every 9... (3 Replies)
Discussion started by: vinaysa
3 Replies
6. Shell Programming and Scripting
Hello - I am in process of deleting many files which are older than 4 weeks.
For example I am inside:
/subsystem/prod/
Files are with various extentions, but anything older than 4 weeks should be deleted.
What would be the most simplest script to acheive this? (4 Replies)
Discussion started by: DallasT
4 Replies
7. Shell Programming and Scripting
Hello everyone,
I am looking to basically creating md5sum files for all iso files in a directory and archive the resulting md5 files into a single archive in that very same directory.
I worked out a clumsy solution such as:
#find files for which md5sum are to be created and store the... (1 Reply)
Discussion started by: SurfTranquille
1 Replies
8. Shell Programming and Scripting
Guys I want to do this:
copy:
/var/router/system1/config/backup/install.put
/var/router/system2/config/backup/install.put
/var/router/system3/config/backup/install.put
/var/router/system4/config/backup/install.put
into:
/var/router/system1/config/install.dat... (22 Replies)
Discussion started by: DallasT
22 Replies
9. Shell Programming and Scripting
Dear all,
I have a directory named A and some subdirectories named B, C, D with .xml files. I want to use the following command to strip the file.
sed -re ':start s/<*>//g; /</ {N; b start}' file.xml > file.xml
At the same time, I want to remove the blank lines using
sed '/^$/d'
How can... (6 Replies)
Discussion started by: corfuitl
6 Replies
10. Shell Programming and Scripting
Hello all!
This is my first post and I'm very new to programming. I would like help creating a simple perl or bash script that I will be using in my work as a junior bioinformatician.
Essentially, I would like to take a tab-delimted or .csv text with 3 columns and write them to a "3D" matrix:
... (16 Replies)
Discussion started by: torchij
16 Replies
LEARN ABOUT DEBIAN
pbsdsh
pbsdsh(1B) PBS pbsdsh(1B)
NAME
pbsdsh - distribute task to nodes under pbs
SYNOPSIS
pbsdsh [-c copies] [-o] [-s] [-u] [-v] program [args]
pbsdsh [-n node] [-o] [-s] [-u] [-v] program [args]
pbsdsh [-h nodename] [-o] [-v] program [args]
DESCRIPTION
Executes (spawns) a normal Unix program on one or more nodes under control of the Portable Batch System, PBS. Pbsdsh uses the Task Manager
API, see tm_spawn(3), to distribute the program on the allocated nodes.
When run without the -c or the -n option, pbsdsh will spawn the program on all nodes allocated to the PBS job. The spawns take place con-
currently - all execute at (about) the same time.
Users will find the PBS_TASKNUM , PBS_NODENUM , and the PBS_VNODENUM environmental variables useful. They contain the TM task id, the node
identifier, and the cpu (virtual node) identifier.
OPTIONS
-c copies
The program is spawned on the first Copies nodes allocated. This option is mutual exclusive with -n.
-n node
The program is spawned on one node which is the node-th node allocted. This option is mutual exclusive with -c.
-h hostname
The program is spawned on the node specified.
-o Capture stdout of the spawned program. Normally stdout goes to the job's output.
-s If this option is given, the program is run in turn on each node, one after the other.
-u The program is run once on each node (unique). This ignores the number of allocated processers on a given node.
-v Verbose output about error conditions and task exit status is produced.
OPERANDS
The first operand, program, is the program to execute.
Additional operands, args, are passed as arguments to the program.
STANDARD ERROR
The pbsdsh command will write a diagnostic message to standard error for each error occurrence.
EXIT STATUS
Upon successful processing of all the operands presented to the command, the exit status will be a value of zero.
If the pbsdsh command fails to process any operand, or fails to contact the MOM daemon on the localhost the command exits with a value
greater than zero.
SEE ALSO
qsub(1B), tm_spawn(3B)
Local pbsdsh(1B)