[svlug] Problem in SSH !
Anagha Tongaonkar
yogiana_t at yahoo.com
Thu Aug 4 17:16:36 PDT 2005
Hello Jeff,
I executed the Compress command using "strace -f" and it
generates the trace file. Now still the Compress program
does not exit; it goes into loop. If I do a CTRL+C then I
see the program has actually done the compress job and
created the required output. However, the program simply
doesn't exit.
If I run the same program/executable on the command line,
it runs fine. I am wondering if exiting of the Compress
command has anything to do with the SSH.
Here is the tail end of the compress.trace for your
perusal:
***********************************
munmap(0xb75cb000, 4096) = 0
write(4, "\n\n\n\n\nPSDM_parameter_file=psdm.0."..., 2415)
= 2415
close(4) = 0
munmap(0xb75ca000, 4096) = 0
getrusage(RUSAGE_SELF, {ru_utime={2, 360000}, ru_stime={0,
270000}, ...}) = 0
gettimeofday({1123194497, 929125}, NULL) = 0
munmap(0xb75cc000, 163840) = 0
write(2, " INFO:", 7 INFO:) = 7
write(2, "Time statistics absolute prct"..., 88Time
statistics absolute prct[%] user system
elapsed count ms/call) = 88
write(2, "\n", 1
) = 1
write(2, " INFO:", 7 INFO:) = 7
write(2, " Processing: 2.85 100"..., 88
Processing: 2.85 100.00 2.35 0.27
2.62 1 2845.18) = 88
write(2, "\n", 1
) = 1
write(2, " TRACE:", 7 TRACE:) = 7
write(2, "Before destroy parameters", 25Before destroy
parameters) = 25
write(2, "\n", 1
) = 1
write(2, " TRACE:", 7 TRACE:) = 7
write(2, "Finishing", 9Finishing) = 9
write(2, "\n", 1
) = 1
write(2, " INFO:", 7 INFO:) = 7
write(2, "BEGIN memory allocation status r"..., 37BEGIN
memory allocation status report) = 37
write(2, "\n", 1
) = 1
write(2, " INFO:", 7 INFO:) = 7
write(2, "END memory allocation status rep"..., 35END
memory allocation status report) = 35
write(2, "\n", 1
) = 1
write(1, "Just before Parse \nJust After Pa"..., 37Just
before Parse
Just After Parse
) = 37
munmap(0xb75f7000, 4096) = 0
exit_group(0) = ?
***********************************
Thank you,
Anagha
--- Jeff Frost <jeff at frostconsultingllc.com> wrote:
> Anagha,
>
> Can you give us the output from running your scripts?
> Also, does the Compress
> command exit with an error or it just seems to run in an
> endless loop? Have
> you checked that the user you are ssh'ing as to run the
> command has execute
> permissions on the Compress command and also read perms
> on the file to be
> compressed and write perms in the diretory the output
> file will be placed?
>
> If all that is good, you may want to strace the compress
> command to see what's
> really going on..you could just add it to your script
> like so:
>
> strace -f Compress file="myData.csv" op="compress" >
> /tmp/compress.trace 2>&1
>
>
> --
> Jeff Frost, Owner <jeff at frostconsultingllc.com>
> Frost Consulting, LLC http://www.frostconsultingllc.com/
> Phone: 650-780-7908 FAX: 650-649-1954
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the svlug
mailing list