Skip to content

How to confirm SFTP file delivery?

I am sending a file using SFTP and public key for non-root user, looks like the file is sent, but I cant find it on the target folder, maybe due to permission. here is the -vvv : target directory How can I make sure the file is delivered, without server access ? Answer All you can do is to check

How to handle 0 Content length in POST request in CGI?

In my CGI application something happens when I pass a 0 content length POST request. Here is my code: I test my application using the Http-Requester plugin for FireFox, when I pass a POST request with no data, the application seems like it enters a loop and no response. If I pass a GET request, the code works…

Pidof not finding the process

I want to find out a shell script process ID using pidof or ps command or any. All i want is only the process id of it. I have used ‘pidof -x test.sh’. Which is not working. Note: I don’t want to invoke the /bin/sh or /bin/bash – because the script will not work. If i invoke /bin/sh in…

errno after accept in Linux socket programming

As stated in accept() man page in RETURN VALUE section: Error handling Linux accept() (and accept4()) passes already-pending network errors on the new socket as an error code from accept(). This behavior differs from other BSD socket implementations. For reliable operation the application should detect the ne…

Run a perl script with the ending .pl

I have a question to perl scripts. I can write and understand C and C++ codes but have no experience in perl. I have a perl script with the extension .pl and want to run it on a Raspberry Pi Model B. I get the script (its a part of the Raspberry Pi B extension ‘Busware SD0’ Firmware) from this

Python + pexpect – How to establish a ssh connection?

I’ve been trying to establish an ssh connection via Python + pexpect, but I can’t send the lines that I want. I think it’s certainly a syntax problem, but I don’t know where it is occurring. The problem is that the password ‘xxyyzz’ never appears on the terminal, so I think…