Discussion:
[ast-developers] ksh93-Scriptdaemon terminates unexpectedly
Dirk.Kautzsch
2014-06-16 10:01:27 UTC
Permalink
I run a ksh93-Daemon (with 'nohup ... &') and the daemon-process terminates unexpectedly and sporadically.

The last command executed:
print "$(date '+%d.%m.%Y %H-%M-%S') - go: $transferid1 check if lock file still active at $go" >> $CFOG

-> The date-command (GNU coreutils 8.4) caused the abort.

Does anyone have an idea?

Thanks,
Dirk

Environment:

Server

Red Hat Enterprise Linux Server release 6.4 (Santiago)
Linux version 2.6.32-358.el6.x86_64 (mockbuild at x86-022.build.eng.bos.redhat.com) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC) ) #1 SMP Tue Jan 29 11:47:41 EST 2013

ksh93-version: sh (AT&T Research) 93u+ 2012-08-01
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.research.att.com/pipermail/ast-developers/attachments/20140616/bd5e9ead/attachment.html>
Danny Weldon
2014-06-16 10:22:24 UTC
Permalink
I don't know the cause of the abort, but have you tried
using printf to format the date instead? It's built into ksh93 so
there won't be any fork required and hopefully won't crash:

Use either:

print "$(printf '%(%d.%m.%Y %H-%M-%S)T\n') - go: $transferid1 check
if lock file still active at $go"

or

printf "%(%d.%m.%Y %H-%M-%S)T - %s\n" now "go: $transferid1 check if
lock file still active at $go\n"
I run a ksh93-Daemon (with ?nohup ? &?) and the daemon-process terminates
unexpectedly and sporadically.
print "$(date '+%d.%m.%Y %H-%M-%S') - go: $transferid1 check if lock file
still active at $go" >> $CFOG
-> The date-command (GNU coreutils 8.4) caused the abort.
Does anyone have an idea?
Thanks,
Dirk
Server
Red Hat Enterprise Linux Server release 6.4 (Santiago)
Linux version 2.6.32-358.el6.x86_64
(mockbuild at x86-022.build.eng.bos.redhat.com) (gcc version 4.4.7 20120313
(Red Hat 4.4.7-3) (GCC) ) #1 SMP Tue Jan 29 11:47:41 EST 2013
ksh93-version: sh (AT&T Research) 93u+ 2012-08-01
_______________________________________________
ast-developers mailing list
ast-developers at lists.research.att.com
http://lists.research.att.com/mailman/listinfo/ast-developers
--
Regards

Danny
Dirk.Kautzsch
2014-06-16 10:56:06 UTC
Permalink
Thanks for the quick reply - I will test it.

Regards,
Dirk

-----Urspr?ngliche Nachricht-----
Von: Danny Weldon [mailto:danny.weldon at gmail.com]
Gesendet: Montag, 16. Juni 2014 12:22
An: Kautzsch, Dirk
Cc: ast-developers at lists.research.att.com; ast-developers-owner at lists.research.att.com
Betreff: Re: [ast-developers] ksh93-Scriptdaemon terminates unexpectedly

I don't know the cause of the abort, but have you tried
using printf to format the date instead? It's built into ksh93 so
there won't be any fork required and hopefully won't crash:

Use either:

print "$(printf '%(%d.%m.%Y %H-%M-%S)T\n') - go: $transferid1 check
if lock file still active at $go"

or

printf "%(%d.%m.%Y %H-%M-%S)T - %s\n" now "go: $transferid1 check if
lock file still active at $go\n"
I run a ksh93-Daemon (with ?nohup ? &?) and the daemon-process terminates
unexpectedly and sporadically.
print "$(date '+%d.%m.%Y %H-%M-%S') - go: $transferid1 check if lock file
still active at $go" >> $CFOG
-> The date-command (GNU coreutils 8.4) caused the abort.
Does anyone have an idea?
Thanks,
Dirk
Server
Red Hat Enterprise Linux Server release 6.4 (Santiago)
Linux version 2.6.32-358.el6.x86_64
(mockbuild at x86-022.build.eng.bos.redhat.com) (gcc version 4.4.7 20120313
(Red Hat 4.4.7-3) (GCC) ) #1 SMP Tue Jan 29 11:47:41 EST 2013
ksh93-version: sh (AT&T Research) 93u+ 2012-08-01
_______________________________________________
ast-developers mailing list
ast-developers at lists.research.att.com
http://lists.research.att.com/mailman/listinfo/ast-developers
--
Regards

Danny
Loading...