Is there a way to run a process (e.g. ls, du, find .. etc) within a strictly limited amount of resources (i.e. cpu, memory, I/O) aside from using nice & ionice, as I didn't find them effective enough in my case.
I have a production server, that has directories with ginormous amount of files, that need to be removed, moved, get their total size .. etc
While running a binary on linux62, the binary took heavy amount of memory.
This particularly happening after it loads java. The same thing is running fine with less memory on earlier versions of Linux.
So i want to know, is there any tools that can list the loaded libraries and their memory size, of a running binary.
I didn't get any utilities to do this, on a binary that is currently running.
I have the following code which is supposed to convert the first page of PDF to thumbnail:
<?php
$strPDF = "http://www.domain.com/b.pdf";
exec("/usr/bin/convert \"{$strPDF}[0]\" -colorspace RGB -geometry 200 \"output.gif\"");
?>
My host server is Siteground, and apparently /usr/bin/convert is where ImageMagick convert function is.
I'm writing some code on windows and I want to use one third party library in my project. But the author of this library only provided binary files for MacOS and linux, no source code. I wonder, is it possible to use this library in my project? I mean, is there a method so that I can execute the binary in my C++ code.
It seems impossible, but I hope there is a miracle.
I'm using ImageMagick to convert a JPG to TIF file, and I'm using the limit options for Imagemagick as below:
/usr/bin/convert -limit memory 256 -limit map 512 subjectfile.jpg -colorspace Gray -depth 8 -resample 200x200 output.tif
When I run the above command the load on the server suddenly goes very high and the CPUs get in wait state for most of the time as below:
Tasks: 245 total, 3 runni
Hello friends,
I am working currently in C programming. For some reasons, in the code, i have to give a path to the binary(executable), which can be directly used instead of any code.
For eg :-
if(condition_satisfied){
execve'absolute_path_to_executable_file'
}
With this, it should execute this binary file. Is this possible? If yes, Kindly let me know.
Apologies for any typos, and IF this has been done before...
This is yet another building block. The code generates a 256 byte binary file of _characters_ 0x00 to 0xFF for general usage and generates another binary file manipulated in a basic way.
I need this facility for a kids project I am doing that WILL be uploaded on here in the not too distant future...
Hi,
This may be a strange question, but here it is. I am writing a C program for 64 bit compilation which gives lots of binary output files (mainly entire C structures with double precision numbers). In 64 bit computer I can read and process data without any problem. But, I cannot read the data from a 32 bit computer (because it is in 64 bit).
Don't know when you might feel the necessity to convert a pdf into a .jpg or a .png file , but in case you have to, then ImageMagick will make this job really easy for you. ImageMagick is a great opensource command line utility for image manipulation.