06-07-2008
Update:
So, it turns out that the executable that was failing is a symbolic link to the real executable located on another disk on our cluster. This symbolic link and the real exe still had full read,write and exec permissions so I'm not sure why this didn't work.
However, end of story - copying the exe to the disk that I was calling it from fixes the problem.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
After I compile a C program, when I run it from a C shell script, it does not print out the results.
e.g:
myCFile.c: main(){printf("Hey");}
myCshScript: myCFile
This does not output "Hey" to the terminal window. I am not even sure if it is executed or not.
What should I do to see the... (2 Replies)
Discussion started by: barisgultekin
2 Replies
2. Shell Programming and Scripting
Hi Friends,
Could you pleas help me out..
I have an awk program which works fine while running it in the command prompt.
The awk program is
===============
awk 'BEGIN {
format="head -%d M2_Sales_N01.txt |tail -%d >M2_Sales_N01_%02d.txt\n"
n=0
m=0
}
{
if (n==0)
{
tmp=$1
n=1
}... (5 Replies)
Discussion started by: bikas_jena
5 Replies
3. Shell Programming and Scripting
Hi All,
I have the following script.
#!/bin/csh
#
# createDATfile.sh
#
cd /export/home/fastserv/bin
source /export/home/fastserv/bin/dbenv.sh
echo `date` >> /export/home/fastserv/bin/log.txt
echo "%INF% Starting send of current FASTSERVICE batch" >>... (4 Replies)
Discussion started by: rahulrathod
4 Replies
4. Shell Programming and Scripting
Hi everyone,
I have never wrote script in csh before, but I need to add only few lines to an existing one. I tried to use the bash standard syntax, and it did not work. So, I attempted to use csh syntax, and it is not working. Can someone help please:
switch ( $Return_Code )
case 0:... (3 Replies)
Discussion started by: nimo
3 Replies
5. Shell Programming and Scripting
Hi
This little script is giving me error: Syntax error at line xxx : `(' is not expected. Wgat did I miss?
RC=0
switch ( $RC )
case 0:
echo Done
breaksw
case -1:
echo not done
breaksw
default:
echo "Hello"
endsw (2 Replies)
Discussion started by: nimo
2 Replies
6. Shell Programming and Scripting
Ok I asked something similar earlier with no response, so maybe I didn't word it correctly. I'm new at this, so thank you for your help.
Here's what I have right now.
----------------------------
> cat MySourceFile
#!/bin/csh
echo "Please Enter Value For My_Env_Var:"
set answer = $<
... (1 Reply)
Discussion started by: MMorrison
1 Replies
7. Shell Programming and Scripting
Hey I am brand new to this forum and scripting.
I have several documents (1000+) all formated exactly the same. Each document contains 97 lines. I want to pull 3 lines from the documents to populate a file. These 3 lines are line number 9, 24, and 58.
Ok my questions: Instead of using... (3 Replies)
Discussion started by: david6789
3 Replies
8. UNIX for Dummies Questions & Answers
Hey all,
I've only just started using UNIX coding on my Masters project, so am still learning!! The script I've been writing is literally just for me to get used to writing it and seeing what I can do with some data I've been given.
I'm trying to write a script, where the penultimate line... (2 Replies)
Discussion started by: southernlight
2 Replies
9. Shell Programming and Scripting
Hello all. I suspect this will be a simple case for an experienced csh scripter, but google is getting me nowhere on this one.
I'm trying to get someone else's set of scripts to work for me, and it's choking when the following script gets called:
#! /bin/csh
if (x$1 == x) then
echo ' you... (1 Reply)
Discussion started by: EinsteinMcfly
1 Replies
10. Programming
I have csh script and call tck command but it do nothing. can you help me?
I only can see it echo
#!/bin/csh -f
set mypath = `pwd`
echo $mypath
if ($mypath =~ *PLL*) then
echo "source ../PreBoot.qel"
else if ($mypath !~ *PLL*) then
echo "source ../hdfuse.qel"
endif
if i remove... (1 Reply)
Discussion started by: sabercats
1 Replies