01-25-2015
Check for existence of crash on Solaris 10
Hey all
what is the command to check "Check for existence of crash/coredump files in /var/crash/"hostname" directory"
thanks for help
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi, I have a list of filenames and I want to verify if they all exist. I know "if filename" would do the trick but how do I go about a list of files? thanks (3 Replies)
Discussion started by: mpang_
3 Replies
2. UNIX for Dummies Questions & Answers
Hi ,
I have a script wherein i have a For Loop.
Within this for loop i create a variable and assign it a value.
The script goes to a For Loop only if certain conditions are met , which means the variable may or may not exists.
However down the line in the script i have to check if that... (2 Replies)
Discussion started by: samit_9999
2 Replies
3. Solaris
Hi,
I have a script which will check the fiel existence, the lines are as below
if !(test -d ./data) then
mkdir data
fi
In the first line error occurs as below
generatelicense.sh: syntax error at line 2: `!' unexpected
Where as this script works fine in linux OS.
How to solve... (2 Replies)
Discussion started by: krevathi1912
2 Replies
4. UNIX for Advanced & Expert Users
Hi everybody,
I need to check in C program wether a given login is known on the system. Is there any system function that could do this ?
So far, all I could find is getpwnam(), which answers my problem by parsing the local password database. But won't work if a user is authenticated by... (10 Replies)
Discussion started by: xavier054
10 Replies
5. AIX
Hello
I am having a requirement like if there is no file in the directory then i need a message to pop on after the execution of the script.
My script basically does for File in `ls -t $DIRECTORY | tail -1`;
if there is no file the DIRECTORY then the script is simply exiting with out... (2 Replies)
Discussion started by: dsdev_123
2 Replies
6. AIX
I have requirement where i need to search for files which start with SALESORDER and PURCHASEORDER. i need to process the files with SALESORDER first and then PURCHASEORDER. If SALESORDER files are not there i dont want to process PURCHASEORDER and i want to come out of script. I have written a code... (4 Replies)
Discussion started by: dsdev_123
4 Replies
7. Shell Programming and Scripting
Hi
How can I check if the path exist or not?
echo "Enter path:";
read my_path;
##I should check whether my_path exists or not.... (5 Replies)
Discussion started by: tjay83
5 Replies
8. Shell Programming and Scripting
i want to check if the file is in the directory or not, and also it should be handle error conditions, like missing files and report the error and exit.
i did something like this:
file ="hello"
if !test -e "${file}"
then echo "No such files exist!"
exit 1
else
do something.......
fi
... (1 Reply)
Discussion started by: mingming88
1 Replies
9. UNIX for Dummies Questions & Answers
I need to check for the existence of a file *.log in a specific directory using a perl script.
Presently am not in that particular directory.
So i am using chdir ("/path/to/my/file)
And then i am using the -e in an if statement to check if it exists.
if (-e $File) {......}
$File contains the... (1 Reply)
Discussion started by: manutd
1 Replies
10. Shell Programming and Scripting
hi
i wanted to check if the file exist or not(multiple files)
DIRE=/home/V478
if ;
then
echo "file present"
else
echo "file not present"
fi
But i am getting the error as
: [: unexpected operator/operand (3 Replies)
Discussion started by: ATWC
3 Replies
LEARN ABOUT CENTOS
abrt-action-generate-core-backtrace
ABRT-ACTION-GENERA(1) ABRT Manual ABRT-ACTION-GENERA(1)
NAME
abrt-action-generate-core-backtrace - Generates coredump-level backtrace
SYNOPSIS
abrt-action-generate-core-backtrace [-v] [-r] [-d DIR]
DESCRIPTION
This tool uses coredump from the file coredump and binary at the path stored in file executable in the problem directory to generate
coredump-level backtrace.
Coredump-level backtrace resembles ordinary backtrace in that it contains information about call frames present on the stack at the time of
the crash. However, it only contains information that can be obtained from the coredump without debugging symbols available - mainly
relative addresses of the stored instruction pointers. Such backtrace can still be useful for reporting and reproducing the bug and does
not require debugging information files to be installed.
The result is saved in the problem directory in a file named core_backtrace.
Integration with libreport events
abrt-action-generate-core-backtrace can be used as an analyzer for application crashes which dump core.
Example usage in report_event.conf:
EVENT=analyze analyzer=CCpp
abrt-action-generate-core-backtrace
OPTIONS
-d DIR
Path to problem directory.
-r
Do not hash function fingerprints. Useful for debugging.
-v
Be more verbose. Can be given multiple times.
AUTHORS
o ABRT team
abrt 2.1.11 06/18/2014 ABRT-ACTION-GENERA(1)