01-16-2015
Have a try run with some quotings.
Like around "${1}.${MDY}"
And add a space & quotes >> "${1}.${MDY}"
Welll, not sure if that helps, but might be worth a try.
Just recently i've experienced a core dump too while running a shell script.
Though it just occoured when the binary was executed in background (subshell of script), but it worked well when called regulary.
hth
This User Gave Thanks to sea For This Post:
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
help, what is the difference between core dump and panic dump? (1 Reply)
Discussion started by: aileen
1 Replies
2. UNIX for Dummies Questions & Answers
Hi ,
Working on AIX 4.3. An internal error from my apps engine suddenly causes the engine to die. During this time i do notice a core file being dumped in the directory from where I try to re-start my engine.
Q is how does one read this core file, or I should say 'what is this core file'?
thnx (2 Replies)
Discussion started by: buRst
2 Replies
3. Programming
MY friends:
my program under sco unix have a problem?
it create a core dump file on the path when execute program ,
but i can't find the error of the C program ,i don't know how to
see the error about my program use core, please help me
or give me some suggest and what tools can use... (1 Reply)
Discussion started by: zhaohaizhou
1 Replies
4. UNIX for Advanced & Expert Users
Hi All,
i am new to this forum.i want detail of reading the core file and trace the problem because of what the program get crashed.please help me.if any body knows any website or tutoril plese let me know.
sudhir (6 Replies)
Discussion started by: sudhir patnaik
6 Replies
5. Solaris
Friends,
I am in search for a shell script that is capable of running as a cronjob and have to send out an email when ever there is a CORE DUMP.
Please post the hints to achieve my goal.
Thanks in advance. (1 Reply)
Discussion started by: rtatineni
1 Replies
6. UNIX for Advanced & Expert Users
Hello all,
Iam new to unix while executing java program which finely working in windows know iam testing with unix ,but in unix while executing iam getting core dump, my application is in client server environment and it is menu drivrn application on clicking options no problem but after some time... (1 Reply)
Discussion started by: vinp
1 Replies
7. Programming
how to view core dumped file using gdb and how to extract information from the coredumped file.can we get similar information from the other utilites like strace or ptrace. (2 Replies)
Discussion started by: Manabhanjan
2 Replies
8. AIX
Hi ,
I want to read core dump file on AIX5.3. While i am trying to use following commands, i am getting only few lines of information.
ux201p3:e46123> dbx capsWrkstnMgr core
Type 'help' for help.
reading symbolic information ...
Segmentation fault in malloc_common.extend_brk at... (1 Reply)
Discussion started by: rps
1 Replies
9. UNIX for Dummies Questions & Answers
my progrme complaints 'Segmentation fault'.
How to let it print 'Segmentation fault(core dumped)' and generate core dump file?
$ulimit
unlimited (22 Replies)
Discussion started by: vistastar
22 Replies
10. HP-UX
Hi Guys,
I was wondering if somebody could give me a link to a very good source of information or document about core dump process and How to's about it. I have also googled it and found some articles myself.
Thanks
Messi (1 Reply)
Discussion started by: messi777
1 Replies
LEARN ABOUT DEBIAN
safe_asterisk
SAFE_ASTERISK(8) Linux Programmer's Manual SAFE_ASTERISK(8)
NAME
safe_asterisk -- A wrapper to run the asterisk executable in a loop
SYNOPSIS
safe_asterisk [ asterisk_params ]
DESCRIPTION
safe_asterisk is a script that runs asterisk in a loop, which can be useful if you fear asterisk may crash.
The script does not run in the background like a standard service. Rather, it runs in its own linux virtual console (9, by default). It
also uses the option '-c' of asterisk(8) to avoid detaching asterisk from that terminal.
safe_asterisk also runs asterisk with unlimited core file size, and thus asterisk will dump core in case of a crash.
To get a "picture" of console 9, from another terminal (e.g: from a remote shell session) you can use:
screendump 9
The init script of the Debian package should be able to run safe_asterisk as the asterisk service, if so configured. See coments in
/etc/default/asterisk
FILES
/tmp
safe_asterisk runs in that directory, rather than in / as usual.
/tmp/core
If core files were generated there, they may be
/etc/asterisk/startup.d
Files in this directory will be 'source'd by the safe_asterisk script before it starts Asterisk proper, allowing them to set addi-
tional environment variables or run any other steps that are needed for your system.
BUGS
While showing the output on a console is useful, using screen(1) as the terminal may be better.
The script does not read configuration from standard location under /etc
It uses fixed locations under /tmp , and thus may be exposed to a symlink attacks.
SEE ALSO
asterisk(8), screendump(9)
AUTHOR
This manual page was written by Tzafrir Cohen <tzafrir.cohen@xorcom.com> Permission is granted to copy, distribute and/or modify this docu-
ment under the terms of the GNU General Public License, Version 2 any later version published by the Free Software Foundation.
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL-2.
Asterisk Jun 30th, 2005 SAFE_ASTERISK(8)