10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Sorry, a noobie question....!
I want to use a linux cluster to copy a list of files. I want to split the processing over 3 nodes so that each node gets (more or less) an equal share.
My script (base.sh) to execute my copy script (copy.sh) looks something like:
#!/bin/bash
for NODE in 1 2... (4 Replies)
Discussion started by: pc2001
4 Replies
2. Shell Programming and Scripting
Store args passed in array but not the first 2 args.
# bash
declare -a arr=("$@")
s=$(IFS=, eval 'echo "${arr}"')
echo "$s"
output:
sh array.sh 1 2 3 4 5 6
1,2,3,4,5,6
Desired output:
sh array.sh 1 2 3 4 5 6
3,4,5,6 (2 Replies)
Discussion started by: iaav
2 Replies
3. Shell Programming and Scripting
I am new at scripting, (and this fourm- so hi guys!) and I was wondering is there something out there that I can use to do the following:
I receive a file on an FTP server
I would like a script to look at a specifc directory for a certain file
and when it arrives it will send an email... (8 Replies)
Discussion started by: mamemlin
8 Replies
4. Linux
I have been looking around for a solution to this, i have been developing for a wile though am very new to CGI, PHP and a lot of the web based tech.
I have a web site hosted with a cPanel web host.
I am looking to have a script(prefer PHP) to run everytime i get a new email to help@xxx.com.... (16 Replies)
Discussion started by: iKris
16 Replies
5. Programming
Hello,
I have the following problem:
I have makefileproj and makefilemod in a build process for a complex project - from makefileproj I call the makefilemod.
In makefilemod I generate a list containing objects eg,: "../../../25_Build/Results/Objects/FBL/Fls.o... (4 Replies)
Discussion started by: marina_lmv
4 Replies
6. Shell Programming and Scripting
Hi I am executing a KSH script by passing command line arguments
example: Red Green Dark Red Blue
when I am splitting the arguments by using " "(Space) as delimiter
But the colour Dark Red is a single parameter. But it is getting splitted in between
How to avoid this. Please help Also... (4 Replies)
Discussion started by: hemanth424
4 Replies
7. Programming
Hi,
i want to call shell script via java + in that shell script i m doing some sql operation by connecting to sqlplus .
i want to return 0 if successful exeution of SQL operations else 1 ;
is it possible ?
#!/bin/sh
Name=$1;
export ORACLE_HOME
$ORACLE_HOME/bin/sqlplus... (3 Replies)
Discussion started by: crackthehit007
3 Replies
8. Shell Programming and Scripting
Hi, I 'm trying to learn the scripting language and am trying to create a script to open a C Program, allow the user to edit it, and then run it. What I have works but only when you enter the name to be compiled and the c program, but what if you only entered the 1 argument (cprogram.c) ? but I 'm... (3 Replies)
Discussion started by: patel_ankz
3 Replies
9. Shell Programming and Scripting
i have a shell script which takes several args. what is the maximum length of string i can give as argument? (6 Replies)
Discussion started by: senthilk615
6 Replies
10. Programming
i write a function using to pass the socket connected fd to child process in the sco unix open server 5.0.5,but in fact i execute the program calling the fuction,system report send the fd error:
Jul 12 12:15 send_fd.c: send_fd sendmsg to sd error
how can i solve the problem ,please help me!!!... (6 Replies)
Discussion started by: hit
6 Replies