Posts

Showing posts from November 26, 2018

Remove old files in a directory except files present in an exception file

Image
Clash Royale CLAN TAG #URR8PPP up vote 3 down vote favorite I am writing a shell script to delete old files (older than 60 days) in a directory except few files and these file names are maintained in an exception file present in another directory. I know the following command works for one exception file but i need to check a list of exception files find . ! -name 'file.txt' -type f -exec rm -f + shell-script find ksh share | improve this question edited Nov 20 at 22:52 Rui F Ribeiro 38.2k 14 75 126 asked Jun 28 '16 at 16:32 Balaji 18 3 related: Delete all files in a directory whose name do not match a line in a file list – don_crissti Jun 28 '16 at 17:17 add a comment  |  up vote 3 down vote favorite I am writing a shell script to delete old files (older than 60 days) in a directory except few files and these file names are maintained in an exception file present in another dir...

Trouble getting openSSL 1.0.2 working on CentOS 5.11

Image
Clash Royale CLAN TAG #URR8PPP up vote 1 down vote favorite My office has some old REHL 5.11 servers on which I need to update the openSSL to take advantage of the latest TLS version. To figure it out, I created a CentOS 5.11 virtual server. I found this guide: https://miteshshah.github.io/linux/centos/how-to-enable-openssl-1-0-2-a-tlsv1-1-and-tlsv1-2-on-centos-5-and-rhel5/ Unfortunately, after following all the steps, I get this error: curl: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory centos curl openssl share | improve this question edited Nov 20 at 22:52 Rui F Ribeiro 38.2k 14 75 126 asked Aug 24 '17 at 17:59 RhoVisions 108 2 What is the output of echo $LD_LIBRARY_PATH – r1verside Aug 24 '17 at 18:14 @r1verside You have mail in /var/spool/mail/root – RhoVisions Aug 24 '17 at 18:24 That's nothing. That mea...