Skip to content

Command line execution of Excel functions

Can Excel functions be called from the command line? I don’t want any interactions with any file. I’d just like to use these functions the way other command line tools work. It should merely serve some one-time purpose. For instance, I’d like it if there were a way to do something like this:…

Linux C++ Detect user shell (csh,bash,etc)

I have a C++ application that needs to make shell specific commands using system calls. Is there a way to detect which shell the user is running? (Csh/Bash/etc). Thanks Elaborate I’m trying to work with some code that forks off via system a rsh call that has a sequence of commands that are using setenv …

Print previous line if condition is met

I would like to grep a word and then find the second column in the line and check if it is bigger than a value. Is yes, I want to print the previous line. Ex: Input file Output Now, I want to search for BB and if the second column (2 or 0.1) in that line is bigger than 1,

eclipse CDT /usr/bin/ld: cannot find -l

this is my code : i installed libimobiledevice library and this is but why in configure CDT to use shared library like picture CDT error ? /usr/bin/ld: cannot find -llibimobiledevice Answer Under libraries add imobiledevice instead of libimobiledevice. When you use -lx, linker searches for libx.so. In your ca…

Compiling a program with limited library access

i want to compile a C program with gcc and glibc(or any other c library) but i want to limit the program access to certain functions for example program should not be compiled if it uses sockets or signal handling functions. any idea how i could do this?? by the way i want to use this on a simple programming

Equivalent for Linux’s “screen”

Is there anything similiar to Linux’s “screen”? What I want to do is launch console application created in Java. Then let’s say I want to execute command to the running application. For example I want to tell it to exit so I’ll tell it command ‘exit’. On Linux I can o…

Linux “screen” does not write results

I have an Ubuntu system running on a remote computer that I use for computations. On other machines whenever I want to run some time-consuming program I type: and execute my program in the resulting screen, say: The program in question writes some results to an output file. This works fine on other machines. …