How to restrict Core file generation after scp (of SSH) command executed in UNIX


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users How to restrict Core file generation after scp (of SSH) command executed in UNIX
# 1  
Old 09-04-2005
How to restrict Core file generation after scp (of SSH) command executed in UNIX

Hi,

I am getting core file in local machine after trasfer files to other machine by using scp (secure copy) of SSH in UNIX.
Could any one please tell me how to restrict core file generatation by using scp command.
# 2  
Old 09-05-2005
A core file is generated when a running program exits on receiving certain signals. Most often you will find that SIGQUIT(signal 3) has been received by the process, but there are many signals that can cause core dumps.
Check this page for more info.

In your case, you need to check where the command is failing using the '-d'. This prints debug info.
# 3  
Old 09-06-2005
Yes, if the program is dumping core, it means you have a problem you don't want to ingore.
# 4  
Old 09-07-2005
Hi,

But I am not setting up SIGQUIT or any other signals at the time of execution of scp command. I am using private/public key authentication setup for SSH for executing scp command,but core file with size (284124) is getting generated at my local directory.

Even When I have executed in debug mode option, but I did not find any failure case, the scp command is executed successfully with exit status 0 is returned along with core file is generated.

Please advice what else setting needs to be done.

thanks
# 5  
Old 09-07-2005
Please post a listing of the debug messages that were generated. Also, are you running this in a script? In that case it may be that some command before or after scp is generating the core file.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Core File Generation

Hi I am using Linux and I am using Java as well as C++ services running on it. The ulimit -c is set to around 400Mb. Whenever any of the service fails they produce a core file.(Actual size of core could be greater than 400Mb). Whenever my Java service fails I get a core file of size 400Mb... (3 Replies)
Discussion started by: Raj999
3 Replies

2. UNIX for Advanced & Expert Users

scp without first time key generation and confirmation

Hi All, I have setup ssh keys for a user to transfer files without password between two hosts. But still the first time scp asks for confirmation and generates a key Due to this our jobs are failing. Is there a way I can avoid that first time key generation and confirmation also and automate... (3 Replies)
Discussion started by: baanprog
3 Replies

3. UNIX for Dummies Questions & Answers

Public and Private Key generation for scp

Hi, What tool is used to generate public and private keys for SCP? Do you have an example script that generates these keys, puts them in files and then another example script that references them from SCP? Thanks, (9 Replies)
Discussion started by: Astrocloud
9 Replies

4. Shell Programming and Scripting

How to restrict running one instance of scp at any time in fsniper

How to restrict running one instance of scp at any time? (2 Replies)
Discussion started by: proactiveaditya
2 Replies

5. OS X (Apple)

No command prompt after SSH/SCP

Recently whenever I log out of an SSH session, or copy something using SCP, I get no response from my shell. Running with ssh -v showed no errors when exiting. Normally I could deal with this, but I believe it's causing errors elsewhere when scripts try to download things from external... (0 Replies)
Discussion started by: keymakerOvvvv
0 Replies

6. AIX

core dump generation in IBM machine

Hi, im getting a core dump file in a AIX machine while using a complex c++ program. The same program is working without any core error in another system with sun OS 5.9. The program has used structs, LL's and lots of call by references. What may be the reason. will it be a problem with the OS ? (3 Replies)
Discussion started by: suresh_kb211
3 Replies

7. Programming

execution failure and core dump generation

Hi, I am running a c++ program in unix sun OS 5.9. There are two functions in a file which are being used by a third function in the same file. the two functions being used are of the same type. one function is returning a success and the control is redeemed by the calling function. for teh second... (5 Replies)
Discussion started by: suresh_kb211
5 Replies

8. Programming

execution failure and core dump generation

Hi, I am running a c++ program in unix sun OS 5.9. There are two functions in a file which are being used by a third function in the same file. the two functions being used are of the same type. one function is returning a success and the control is redeemed by the calling function. for teh second... (2 Replies)
Discussion started by: suresh_kb211
2 Replies

9. Solaris

Core dump generation in sun OS

Hi, im getting a core dump file in my sun OS version 5.9 while using a complex c++ program. The same program is working without any core error in another system with same sun OS and same version. The program has used structs, LL's and lots of call by references. What may be the reason. will it be a... (3 Replies)
Discussion started by: suresh_kb211
3 Replies

10. UNIX for Advanced & Expert Users

Missing core file using ssh + command

On a 2.6.21 kernel (MontaVista, x86_pentium4), I'm failing to see expected "core.pid" files dropped. Consider this tiny program, "dumpcore.c": #include <stdio.h> #include <stdlib.h> #include <sys/prctl.h> int main( int argc, char ** argv ) { printf("dumpable = %d\n", prctl(... (5 Replies)
Discussion started by: kclittle
5 Replies
Login or Register to Ask a Question