I'm trying to launch a dbus client, programmed using a Python script, from another script launched using a udev rule (which runs as root), and I need this dbus client to remain running when the script ends.
The dbus client to launch is:
#!/...
good, my question is the following as I can do to make a script in php that at the time of taking the screenshot I modified the name and I did not change the image already saved .. my code is as follows:
<?php
function reporte($i){
req...
I'm trying to execute a script .sql generated with MySQL from a java application, I have read and researched different ways to do it and I have found several options (none of which had worked for me) and I found the following block of code :
p...
I have the following problem:
I compare two arrays, the first is a file and the second array stores the previous data from the first array.
The idea is that when comparing the arrays a repeated data is not inserted to perform the operation on...
I'm starting to make simple scripts in Linux, and I have a doubt when sending parameters to one. The script is as follows:
#!/bin/ksh
if test $1 -lt $2
then
echo "La cadena 1 es menor que la cadena 2"
else
echo...
I have had to face this problem recently and fixing it manually is tedious and avoiding errors by omission is not easy:
Scenario:
Preconditions:
I have a WORK table with a numeric station that auto-increments. It is the master table...
Friends, I have the following script, which I developed as a simple exercise, but I do not work correctly with the logical operators < and > that I understand in Batch are LSS and GTR .
Here my code:
@echo o...
I have a folder with multiple scripts that I want to call from Python.
I have added the folder to the PATH to be able to call these from any directory. And it has been added correctly:
user@myuser:~ export PATH=$PATH:~/misScripts
user@myus...
I have this code in the index.php of a domain:
<?php
if (isset($_POST["redirect"])) {
$hash = $_POST["redirect"];
if ($hash !== "") {
$origen = isset($_SERVER['HTTP_REFERER']) ? $_...
function Cloaks:Init()
if (file_exists)(Cloaks.DB) == false) then
print('Creating Admiral Cloak Database')
table.save({},Cloaks.DB, FILE_WRITE)
end
end