Please reread the directions I gave you in message #8 in this thread. You didn't even come close to doing what I suggested. Given where you are now, please follow these steps EXACTLY:
Type the command:
into your shell and report the results.
Type the command:
into your shell and report the results.
Remove the line: ksh eon_run.sh from eon-run.sh.
Type the command:
into your shell and report the results.
Type the command:
into your shell and report the results.
Type the command:
into your shell and report the results.
Type the command:
into your shell and report the results.
result
2. type eon
3. ls -l eon_run.sh
4. ls -ld $HOME/bin $HOME/bin/eon_run.sh
Kindly advice.
Many Thanks
Balaji
In the 3rd message in this thread you said:
Quote:
I save the script as eon-run.sh and tried to run the script as " sh eon-run.sh"
I now see that instead of saving the script in eon-run.sh and running sh eon-run.sh you saved the script as eon_run.sh and ran the script using sh eon-run.sh. That explains a few things. You did some of the things I asked you to do last time and skipped others.
So, to resolve you problem, please insert the following line into eon_run.sh after line 1:
and then PLEASE TYPE THE FOLLOWING COMMANDS INTO YOUR SHELL EXACTLY and report the results:
OK Looking at everything you've supplied so far, it seems that most of your problem are related to your shell execution environment (especailly your setting for $PATH).
The : separated values in $PATH are supposed to be directories of commands that you execute frequently; not the names of the executable files that you want to execute. And, having a directory in $PATH more than once only slows down command executiion by your shell. When I replaced the colons in your $PATH value with newlines and sorted the results, I got:
Since you have an alias for eon that is a shell variable that expands to /home/Balaji/Desktop/openeye_progrms/openeye/bin/eon, it seems obvious that /home/Balaji/Desktop/openeye_progrms/openeye/bin is a directory containing the executables for eon, fred, omega2, posit, rocs, szybki, vbrood, vida, and vrocs. It is also highly likely that /home/Balaji/vmd-1.9.1/bin is a directory containing the executable vmd, and /home/Balaji/vmd-1.9.1/bin is a directory containing the executable moe. I'm pretty sure that /home/Balaji/acceleratedMD_analysis/aMD_CBP/aMD_30ptn_lipid/seed4545/ss_plot.c is not a directory and that ss_plot.c is not an executable file, and that /home/Balaji/polypharmacology_simulations/test_03 and /home/Balaji/Desktop/smap_v2_0 don't need to be in $PATH.
If you change the place where you initialize $PATH to set it to:
and then log out, log in again, and run the original script I gave you in message #2 in this thread by issuing the command:
everything should work.
I don't know how many aliases you have like eon, but with this suggested change to $PATH you can certainly get rid of the alias for eon. If you have similar aliases for the other executables in /home/Balaji/Desktop/openeye_progrms/openeye/bin, you can get rid of all of them too.
Last edited by Don Cragun; 12-01-2012 at 08:13 PM..
Reason: fixed typo in last paragraph.
I create a CGI in bash/html.
My awk script looks like :
echo "<table>"
for fn in /var/www/cgi-bin/LPAR_MAP/*;
do
echo "<td>"
echo "<PRE>"
awk -F',|;' -v test="$test" '
NR==1 {
split(FILENAME ,a,"");
}
$0 ~ test {
if(!header++){
... (12 Replies)
The company I am with is using Oracle Supply Chain Planing 8.12.1 with JDE 8.12. This is a Unix based system running on Windows Servers using Hummingbird Exceed Version 14 for interactive processing
We are currently attempting to automate the Advance Planning Agent flows on a couple of... (2 Replies)
Hi All,
I am currently looking at automating the steps that I follow to download log files from putty to desktop.
I connect to a client's machine through citrix desktop. I am required to download quite a number of application logs to identfiy the issues in production.
Steps that is being... (3 Replies)
Hi,
I have a file with date in it like:
UserString1
UserString2
UserString3
UserString4
UserString5
I need two entries for each line so it reads like
UserString1
UserString1
UserString2
UserString2
etc. Can someone help me with the awk command please?
Thanks (4 Replies)
Hello all,
Here is what my bash script does: sums number columns, saves the tot in new column, outputs if tot >= threshold val:
> cat getnon0file.sh
#!/bin/bash
this="getnon0file.sh"
USAGE=$this"
InFile="xyz.38"
Min="0.05"
#
awk '{sum=0; for(n=2; n<=NF; n++){sum+=$n};... (4 Replies)
Hi,
I have to add the 'newgrp' command to my login (.cshrc) script.
The problem is that if I add it, it comes to infinite look, since newgrp opens new shell again and again.
How to automate the newgrp when I have to login, and avoid that loop?
Currently I'm thinking of a condition that... (2 Replies)
Sorry for the duplicate thread this one is similar to the one in
https://www.unix.com/shell-programming-scripting/88132-awk-sed-script-read-values-parameter-files.html#post302255121
Since there were no responses on the parent thread since it got resolved partially i thought to open the new... (4 Replies)
Hi all
I am trying to create a script to automate the creating of filesystems.
The problem I am having is as follows:-
After creating the Log Logical Volume, I want to format it, using the logform command.
The Logform command expects user intervention, by typing 'y' and 'enter' to continue.... (2 Replies)
Hi,
Can u see the code below.
set xyz = `cat testt1.txt | awk '/-----/{\
print $1 }\
' | tail -1`
I need to execute it in c shell . What is wrong with the above command.
When i write everything on a single line then it is working.
Can anybody help me . (0 Replies)