I have an executable that takes one input file and have been running it like so, submitting as a job to pbs using qsub: I have a script (runpp_multi.sh) to make it run on multiple files in a directory: These both work fine, but obviously there’s a problem if I submit the script that runs on multiple fil…
How to build a conditional while statement in Bash?
Hello Stackoverflow community, In order to make my code as less ‘copy-paste-ey’ as possible, I’m trying to come up with a smarter method to make it more compact. Is there any way to create a ‘conditional while’-statement (if that’s even a thing) in your script without havin…
Segmentation fault on memcpy() function [closed]
Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed 4 years ago. Improve this question I hav…
Fedora 28 / GLIBC 2.27 libm.so.6 logf() and powf() c++
As I am sure other Fedora 28 users will know, the OS’s glibc was recently updated to glibc 2.27. Amongst many other things, 2.27 has added new implementations of logf() and powf(). This has caused my application to fail to run on distributions with an older glibc (Debian, for example). When the applicat…
Yum Repo Issues
My CentOS-Base.repo has the following mirrors: When I say yum install yum-utils, it fails with the error saying http://custom-url/centOS-updates/Packages/yum-utils-1.1.31-46.el7_5.noarch.rpm: [Errno 14] HTTP Error 500 – Internal Server Error Trying other mirror. Error downloading packages: yum-utils-1.1…
Checking for specific system call support in inline assembly
My application builds on environments that are older, and do not support newer (specific) system calls. I can’t go upgrading them for reasons I can’t disclose, but instead of making it compile time (which would lose out on any ‘benefits’) I was wondering if there’s a way to do in…
Install older version of gnu-make in Ubuntu 18.04
I want to install make 3.81 on Ubuntu 18.04. So I download this version of make and run ./configure and then make. But when compiling it gives me this error: Same situation at building version 3.82. My current version of make is 4.1. Is anybody know what could be wrong? Thanks EDIT: glob/libglob.a(glob.o): In…
Get PHP $_SESSION data in .htaccess for LiteSpeed cache
I need to send data from $_SESSION from PHP file to .htaccess for setup Vary variable for setting LiteSpeed cache. PHP script example: .htaccess example I already tried these ways: Via cookies. I set PHP variable in the cookies and get it from there in .htaccess via “RewriteCond %{HTTP_COOKIE} (.*) [NC]…
How to list a directory content
How to access directory files when we don’t have index file. I used this htaccess code but it worked when I mention file but I want to show directory file without insert index file. Please check my htaccess code and tell me where i am wrong thanks Answer You can use the Options configuration option. The…
Why does this not kill remote process?
The follow command works in a local terminal: But this command doesn’t work remotely: …even though script.py on remote belongs to john, the user we are ssh as. I can ping successfully and other commands are successful. Answer You need to escape the pipes to cause them to be passed to the ssh comma…