Skip to content

Linux screen snapshot/redirect

Is it possible to take a “snapshot” of a running screen command, either stored as text or an image? Something akin to the following: Answer It’s possible to take so called “hard copy” of a screen session: Here we send hardcopy hc.n command to screen session 11534.test. The sessio…

link files within directory, with simple command similar to cp

Where my question originated: When running cp source/files.all destination/, all the files within source will now also exist in destination Question: What if I didn’t want to duplicate the data from source into destination, but simply link them (with absolute path). Usually, I would run something like: …

Compressing ZIP files in a linux server with PHP

I am trying to create a .zip file of a folder in linux. First I go where the compressed folder is: The folder test has the folder testzip which should be zipped and sent somewhere else: This should create testzip.zip. Somehow this doesn’t work. Could anyone help? Answer Try with instead of — EDIT …

Setup makefile for ‘path agnostic’ inclusions

In my project files I just want to be able to say: main.cpp: When these headers files reside in separate I’ve setup my make file to attempt to achieve this but I still get fatal error: foo.h: No such file or directory so I haven’t been able to set it up correctly. Makefile: Is LIBS correct? How ca…

Compiler says uuid.h not found but apt-get says it is

When compiling my C++ project that includes uuid.h I get the compile error: fatal error: uuid.h: No such file or directory I’m not sure whats going wrong. It could be my compiler instructions are wrong or that I indeed dont have that file installed (but I don’t think thats the problem). sudo apt-g…