NOTE: I'm really looking for an SSH-y solution here, more than bash-y one.
I need to execute a series of commands over ssh, programatically. There are many ways to do this, but I can't find any that works with my constraints:
some of the commands set variables in the shell.
I want create a script with default arguments, of manner how some commands display default arguments pressing tab button in linux
In first instance I want to catch the tab button with the command trap, but it is not a correct way since the tab button shall trapped by the shell before to execute the script and no after
the questions are,
How catch the tab button in the shell before execute t
I've recently installed grc (generic colorizer) to my system via MacPorts, giving me the ability to get colorized output for plenty of commands which by default don't support it (see screenshot below).
I would like to make using grc automatic, how ever not for specific commands, but ever command.
I am trying to restrict an ssh-user to execute unwanted commands using ssh(commands send along with ssh command) from a remote host. So for that I am using the forced command in the authorized_keys file that will allow the ssh-user to only execute a particular command.
If I did not set this, I am able to login via ssh and sftp.
I'm working on a script that takes commands from mysql and execute them one by one. my problem is, i can't execute the commands from script:
./bash.sh: line 26: /myscript.sh -c "": no such file or directory
line 26 is the command i wish to execute ("$com"). if i try to run the command manually, by echoing the content of "$com" and than run it from terminal, it's working.
gauthma wrote:Thanks for the quick reply. I had no manpage for "source"[karol@black ~]$ help source
source: source filename [arguments]
Execute commands from a file in the current shell.
Read and execute commands from FILENAME in the current shell.
Hi,
I'm trying to get 'gnomesu' to take a string of commands and execute them one by one, as you'd expect. So far, it only wants to execute the first one and use the rest of the string as an argument to that command. So, doing something like this:
Code:
gnomesu --command "echo foo; echo bar"
which you'd think would work, will print this in the console:
----------- Summary -----------
I need a command/set of commands that can help me simulate a shell terminal via a PHP web page using commandline functions. How can I combine the power of nohup and a while loop to:
start the shell,
execute commands and print output (and errors i.e.
In this article I'll explain how to execute a shell command using a c/c++ program.
There's an advanced example included, reading line by line from a file and executing a command for each line.