Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Only a true UNIX guru can help me
@ 1996-09-01  4:00 Paolo Zuccon
  1996-09-02  4:00 ` Brian Martin
  0 siblings, 1 reply; 2+ messages in thread
From: Paolo Zuccon @ 1996-09-01  4:00 UTC (permalink / raw)



Hi pepole, I have a very strange problem: one of my programs, whose name
is
reconb,  run without probelms if I run it from a command line but if I
wrote
a script like:

#!/bin/sh
reconb

or like:

#!/bin/csh
reconb

it crashes after some cycles(my program makes an analysis on data from a
file)

But more and more strange, if I write a file with this only line:

reconb

and I give it te x bit to make the file executable,and then I run the
file,
the program crashes again!!!!!!!

My quetion is What a difference between run a program on the command
line
and from a file like the last I described ?

You have to Know that I use the tcsh on :
                             
Digital UNIX V3.2C  (Rev. 148); Wed May 29 12:43:31 MET DST 1996
Digital UNIX V3.2C Worksystem Software (Rev. 148)

Any comment is well accepted.

                                   Thanks Paolo.

zuccon@axpd22.pd.infn.it

PS. I'm sorry for my poor english



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Only a true UNIX guru can help me
  1996-09-01  4:00 Only a true UNIX guru can help me Paolo Zuccon
@ 1996-09-02  4:00 ` Brian Martin
  0 siblings, 0 replies; 2+ messages in thread
From: Brian Martin @ 1996-09-02  4:00 UTC (permalink / raw)
  To: Paolo Zuccon


Paolo Zuccon wrote:
< some stuff about crashing subshells >

Paolo, try this:
First, from your normal logged in shell, type

% set > my.set
% env > my.env

Then, put those two lines into the script you're trying
to run, as the first two lines, and try to run the script
the same way you have been.  Be sure to rename the output
files each time to something meaningful, or they'll be
overwritten.

Once you have all your environmental settings in files,
print them out and look at them.  Compare each one and
you should find some anomaly indicating the problem.

Failing that, I'd say try this:

Jump into a normal shell

% csh

Try to run your program.  If it runs, I've got no idea what
your problem is.  If it doesn't, it's your tcsh.
You've got something tcsh specific in the program.  Fix it.

One more idea to try as a work around.  Execute your program
as a background process and see if it runs.  This will at least
allow you to run the thing and get other work done.

> PS. I'm sorry for my poor english

And 99% of American's should be sorry for their's, don't appologize
son, at least you can speak a foreign language.  A bunch of ignorant
lazy, fat, indolent, self-indulgent, cretinous

oh, sorry, was i going off again on Amerika's lack of decent education?
oops.

Hey, good luck with your problem, I'm taking odds its your tcsh.

bmartin



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1996-09-02  4:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-09-01  4:00 Only a true UNIX guru can help me Paolo Zuccon
1996-09-02  4:00 ` Brian Martin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox