FAQ Database Discussion Community


Invoke a python script on a remote server and poll the status

python,polling,remote-server
I'm looking for a best way to invoke a python script on a remote server and poll the status and fetch the output. It is preferable for me to have this implementation also in python. The python script takes a very long time to execute and I want to poll...

Java remote interactions

java,operating-system,remote-server,interaction
I'm in internship, and my mission is to build a deployment program in Java. My approach was based on a "tasks to do for a deployment" model with dynamic instanciation (but this is not the point). Every task does something locally or on the remote server (sometimes both). For example,...

Run jar file in remote computer

remote-server
I need to run some jar file in another machine in LAN. java -jar start.jar How to run a jar file on remote computer? Thx!...

Executing PHP Script Remotely From Another Server [closed]

php,cron,remote-access,remote-server
I have a PHP script on a server A that is executed by accessing the url domain.com/dir/script.php. I want to create a PHP script on server B that will execute that script on server A remotely. How do I do this?

Wait until process in remote server finishes using Fabric

python,server,wait,fabric,remote-server
Setup I am using Fabric to kick off a process on a remote server. My local server executes a Python file that runs three functions in sequence: the 1st and 3rd in the local server and the 2nd in the remote server, as follows. local_file.py local_function_1() remote_function() local_function_2() The remote...

how to visualise hadoop interface installed in ubuntu server in a remote windows machine

hadoop,networking,remote-server,ubuntu-server
I have installed hadoop in Ubuntu server ,and I want to visualise the hadoop interface in a windows machine using the browser. the two machines are in the same network. I've tried in the browser : @IP:8088 and @IP:9001 I know i'm missing something, i need your help . thank...

PostgreSQL export result as CSV from remote server

bash,postgresql,csv,remote-server
I have read all other solutions and none adapts to my needs, I do not use Java, I do not have super user rights and I do not have API's installed in my server. I have select rights on a remote PostgreSQL server and I want to run a query...

PsExec to run batch file in remote computer

batch-file,c++builder,remote-server,psexec
I use this code C++ builder to execute batch file in remote computer String PsExec = ExtractFilePath(Application->ExeName) + "PSTools\\PsExec.exe"; String lcParam = " \\"+gl_HostName+" cmd /c "+TDirectory::GetParent(rootPath)+"\\...\\File1.bat "+IntToStr(8988) ; SHELLEXECUTEINFO ShExecInfo = {0}; ShExecInfo.cbSize = sizeof(SHELLEXECUTEINFO); ShExecInfo.hwnd = NULL; ShExecInfo.lpVerb = NULL; ShExecInfo.lpFile = PsExec.c_str(); ShExecInfo.lpParameters = lcParam.c_str(); ShExecInfo.lpDirectory =...

ssh/login to a buildserver on the network and logout

python,ssh,build,server,remote-server
I am trying to ssh into a buildserver on the network and run some commands and logout of the server,i have looked at other posts and written the following code but its not working?can anyone suggest what is wrong or is there a better way to accomplish this?thanks in advance...

Locating the data directory for postgresql on mac

postgresql,csv,remote-server
If I run the following command in a postgresql that I connect to remotely: SHOW data_directory; it tells me /var/lib/pgsql/9.3/data If I copy a table from this remotely connected psql to a file and try to save it on my computer I would run this: \copy table to 'fileFromTable.csv' csv;...

a 500 Internal Server Error error was encountered

php,.htaccess,codeigniter,web-hosting,remote-server
I have just upload my local project(overwrite existing one that was working correctly) to remote server . my .htaccess looks like: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L] <Files "index.php"> AcceptPathInfo On </Files> RewriteRule ^username http://www.google.com #^([a-zA-Z0-9_-]+)$ user/profile/USERNAME=$1 log error: SoftException in Application.cpp:256: File "/home/fewextra/public_html/index.php"...

Connect to MySQL Database on Local Network

mysql,remote-server
I actually thought I could do this until I tried. I installed MySQL server on one PC in the Local network IP Address (192.168.1.4) and now I am trying to access it from another PC in the same network (192.168.1.5) but I am unable: C:\Users\DOMICO>mysql -u domico -h 192.168.1.4 -p...

curl php response 204 to download zip file

php,curl,remote-server
I need a download a file to remote server. But i can't do it with curl in php. The code is: $ch = curl_init($source); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); curl_setopt($ch, CURLOPT_BUFFERSIZE, 8096); curl_setopt($ch, CURLOPT_BINARYTRANSFER, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); var_dump(curl_exec($ch)); print_r(curl_getinfo($ch)); die; The result is: string(0) "" Array ( [url] => http://example.com/example.zip [content_type]...

ssh dynamically from script from any server

linux,ssh,remote-server
Ok, I have been searching for few hours and cannot seem to find the solution. I have a file on a remote server to which one of the local users on that server has write access. I have the credentials. The requirement is: The shell/perl script should automatically login to...

Noninteractive Remote Commands with Powershell

powershell,remote-server,non-interactive
I am developing a script which uses ssh to connect to a windows host, run a powershell command, and parse the output. While I can connect to the host and run the command, powershell will not exit and return control back to the local script until I press the enter...

Run perl script on remote server

perl,remote-server
Is it possible to run perl script, which is located on a remote server, on that server from Windows? There is a job on a remote server that I want to get done every time I make something on Windows.