On the server there are some databases named modelo-submodelo
(this is the name of the database, created with "-" same).
When I execute a command like:
mysqldump -h"$DBHOST" -u"$DBUSER" -p"$DBPASS" modelo-submodelo --compress=TRUE &g...
Considering that ${parameters} is an array that can contain valid IP addresses or not, I wrote the following code:
for ((i=0; i<$#; i++)); do
eval "arg=\${$i}"
ping ${parameters[i]} -c1 -q &>/dev/null...
There are already a few days that I am searching the Internet for such a response but I have not gotten any so far.
I'm trying to figure out ifconfig's Global IPv6 to be used on MOTD on Ubuntu.
With IPv4 it was quite easy to do this with this...
I'm trying to create a command in the .bashrc of ubuntu, however I'm having a problem, I'm trying to create a folder with the variable entered at the time of calling the alias, but this is giving an error. When I open the terminal it already ask...
I'm trying to do a delete of all rows from a table via Shell Script.
The database is oracle. The bank for some reason does not let me do truncate and the delete simply does not delete, without presenting any error. I do not really know why, when...
The processes run by php's shell_exec () end up restarting apache. Is it possible to keep processes running uninterrupted when restarting apache?
Below the code I'm using:
$Command = "ksh -c '( trap \"\" 1 2 3 4 15; ";
$Command .= "./sc_se...
I needed a framework to be able to open remote sessions on (Unix-based) servers and execute commands remotely (if possible as% with% same).
Does anyone know of any and mature that can serve this purpose?
Main purpose:
What happ...
I'm trying to create an environment variable that will be accessed by a php script by the user running httpd (user: apache). It is defined as /sbin/nologin and therefore does not access .profile , profile , .bashrc , etc...
I'm trying to do a task schedule in linux to run a sh file, however, it does not run by crontab , but it does when done in the hand.
I did a scheduling test to create a text file, it works, but to run sh does not.
Here...
I have a "mega-heavy" SQL file that does not open either in sublime, in notepad or in gedit. I just need to delete the first line Use nome_database; to be able to import through the workbench or mysql command line in the terminal: mys...