Search Results

Search: Posts Made By: aplaydoc
7,064
Posted By aplaydoc
Redirecting several outputs to /dev/stdout
I have an executable that, depending on its input, outputs to either one file or several. It usually prints nothing on screen. The usual way to call this program is to specify an input and output...
7,555
Posted By aplaydoc
Thanks guys for the help, I greatly appreciate...
Thanks guys for the help, I greatly appreciate it.

Is there a better way to strip out <b> and </b> symbols from the piped output besides calling perl?

$Executable | tail -$(( $NBCLUSTERS*2+6...
7,555
Posted By aplaydoc
I just noticed the = in red, sorry! I changed my...
I just noticed the = in red, sorry! I changed my line into

export QUERY_STRING="workdir=$DIR&nb1=$NB1&nb2=$NB2"

and now everything seems fine.

Strange that before I didn't get any errors...
7,555
Posted By aplaydoc
Sorry, I only extracted relevant parts of my...
Sorry, I only extracted relevant parts of my script, I forgot to keep the first line, I just modified my code above to keep it clear here ...


As for the use of export command, I still do not...
7,555
Posted By aplaydoc
Sorry, here it is: #!/bin/bash ...
Sorry, here it is:


#!/bin/bash

##First I define some variables:
Executable=/u/myname/someplace/SomeProgram.cgi
WorkDir=/u/myname/here/there
subdirName=XYZ
NB1=5
NB2=1000

for ID in `ls...
7,555
Posted By aplaydoc
This solution did not work well for me because I...
This solution did not work well for me because I run this cgi many times in a for loop, each time changing the directory in my QUERY_STRING. It seems that if I do "export", then only the first...
7,555
Posted By aplaydoc
Invoking CGI executable after setenv (in bash)
Hello,
I have an executable cgi program that I can run manually from my Linux shell after setting environmental variables on the previous line, like this:

setenv QUERY_STRING...
7,881
Posted By aplaydoc
Thanks cfajohnson for the advise. I actually read...
Thanks cfajohnson for the advise. I actually read in many places that csh is not good. I am new to Linux, the only reason I use csh is that the guy who taught me Linux also gave me some scripts in...
7,881
Posted By aplaydoc
The fact that csh is very limited should not...
The fact that csh is very limited should not prevent a talented programmer from finding a solution.

Here's what I came up with: I made a perl script that takes any word and strips the back quote...
7,881
Posted By aplaydoc
Removing back quotes from string in CSH
Hello,
I am using csh to read a text file and save its words into variable $word in a foreach loop. These words have small back quotes ` as integral parts of them, for example, one word would be...
Showing results 1 to 10 of 10

 
All times are GMT -4. The time now is 04:22 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy