I have MySQL password saved on a file
foo.php, for example
P455w0rd, when I try to use it:
stdout on one CentOS server needs to be piped to
stdin on another CentOS server. Is this possible?
The system may provide non-standard extensions. These are features not required by POSIX.1-2008 and may include, but are not limited to: […] Additional character special files with special properties (for example,
I’d like to take a program
P that reads from
stdin & writes to
stdout, but connect it to
nc or whatever such that it reads from a certain port and outputs to another port.
While building a small expect script I noticed that, after executing the script, some characters were automatically on the input of bash. I have seen that on other programs before, but here I have something reproducable.
Apparently, if the same shell launches multiple ssh connections to the same server, they won’t return after executing the command they’re given but will hang (
Stopped (tty input)) for ever. To illustrate:
I have an executable that starts a user-interactive shell. I would like to, upon launch of the shell, inject a few commands first, then allow the user to have their interactive session. I can do this easily using
Consider the interactive program
interactive. I have to run this program fairly frequently, and each time I run it the first few commands are the same. Obviously, having to type those commands over and over again is a pain. I have collected those command (separated by newlines) in the file
cmd. Now I can do
cat cmd | interactive to run the commands. The problem is that once
cmd has been fully read,
interactive recieves EOF and exits.
if i want to display “aaa” on screen: