How do I analyze a program’s core dump file with GDB when it has command-line parameters?

My program operates like this: exe -p param1 -i param2 -o param3 It crashed and generated a core dump file, core.pid. I want to analyze the core dump file by gdb ./exe -p param1 -i param2 -o param3 core.pid But GDB recognizes the parameters of the EXE file as GDB’s input. How do I analyze … Read more

login wp impossible

well i can access the sites: www.foo.com and www.bar.com but i cannot access the login – the sites are blank. foo.com/wp-login.php bar.com/wp-login.php i have the following logs. [Mon Jan 01 16:26:03.229924 2018] [core:notice] [pid 17589] AH00052: child pid 24869 exit signal Segmentation fault (11) [Mon Jan 01 16:39:54.242584 2018] [core:notice] [pid 17589] AH00052: child pid … Read more

Sorting a tab delimited file

I have a data with the following format: foo<tab>1.00<space>1.33<space>2.00<tab>3 Now I tried to sort the file based on the last field decreasingly. I tried the following commands but it wasn’t sorted as we expected. $ sort -k3nr file.txt # apparently this sort by space as delimiter $ sort -t”\t” -k3nr file.txt sort: multi-character tab `\\t’ … Read more

How to find the mysql data directory from command line in windows

In linux I could find the mysql installation directory with the command which mysql. But I could not find any in windows. I tried echo %path% and it resulted many paths along with path to mysql bin. I wanted to find the mysql data directory from command line in windows for use in batch program. … Read more

How to send data to local clipboard from a remote SSH session

Borderline ServerFault question, but I’m programming some shell scripts, so I’m trying here first 🙂 Most *nixes have a command that will let you pipe/redirect output to the local clipboard/pasteboard, and retrieve from same. On OS X these commands are pbcopy, pbpaste Is there anyway to replicate this functionality while SSHed into another server? That … Read more