Skip to content
Advertisement

How to find out which USB-RS232 device is on which tty?

I have two different USB devices based on the same USB-RS232 chips. When I plug those in the USB they are mounted to /dev/ttyUSB0…3 My problem is how, inside a script, I can find out which one is on what tty? Using lsusb I can differentiate them: And using dmesg I can tell where they were mounted: But “usb 4-1”

cURL Simple File Upload – 417 Expectation Failed

I have a problem with a simple file upload post with cURL… I did it so many times but in this case I always get “417 Expectation Failed” from server. When I try to post with my browser it works 100% but with cURL not. That’s my configuration: My simple test form that works: here the image_upload.php: my cURL script

Run Another Program in Linux from a C++ Program

Okay so my question is this. Say I have a simple C++ code: Now say I have this program that I would like to run in my program, call it prog. Running this in the terminal could be done by: Is there a way to just do this from my simple C++ program? For instance Any feedback would be very

Re-opening stdout and stdin file descriptors after closing them

I’m writing a function, which, given an argument, will either redirect the stdout to a file or read the stdin from a file. To do this I close the file descriptor associated with the stdout or stdin, so that when I open the file it opens under the descriptor that I just closed. This works, but the problem is that

Need a simple Linux C++ IDE (Android NDK) [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations. Closed 2 years ago. Improve this question I need an IDE that must: allow running the ~/android-ndk-r7/ndk-build script

How to convert m4v and wmv videos to mp4 format using ffmpeg?

I am using ffmpeg to convert videos to mp4 in my PHPMotion project. I am not able to convert wmv and m4v video to mp4 format. I’ve pasted the command that I used to convert wmv and m4v: When I use this codes, i got an error message: How can I solve this issue? Answer For those who still find

Advertisement