remote-connection

C# start a scheduled task

微笑、不失礼 提交于 2019-11-30 03:40:06
问题 I'm trying to write a simple form in c# that will run a scheduled task one some computers. Whet I have so far is: private void button_Click(object sender, EventArgs e) { try { for (int i = 0; i < num_of_computers; i++) { string line; line = (" /run /tn myTask /s " + _ReplacerObj.MyComputers[i] + " /u user s /p password"); proc.WindowStyle = System.Diagnostics.ProcessWindowStyle.Minimized; proc.FileName = @"C:\WINDOWS\SYSTEM32\schtasks.exe"; proc.Arguments = line; Process.Start(proc); } }

How to enable adbd to listen to a port at boot time in Android?

我怕爱的太早我们不能终老 提交于 2019-11-29 01:30:18
问题 I have a rooted HTC Hero, and what I want to do is to enable the adbd to listen to a port at boot time. I tried some code found here: setprop service.adb.tcp.port 5555 stop adbd start adbd in an Android shell and it works great. I tried to change the init.rc file. I added the above code in init.rc and I replaced it with the original file, through these commands: adb push init.rc sdcard adb shell adb su mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 / adb cp sdcard/init.rc / The file is

How do I open up my MySQL on my Raspberry Pi for Outside / Remote Connections?

跟風遠走 提交于 2019-11-27 19:24:59
I have a Raspberry Pi that stores temperature data for homebrewing activity. I am making a Spring MVC application on my computer and I want to tap the data. Both my Pi and my computer are on the local network. I can SSH and FTP into my RPi perfectly. mysql --192.168.1.102 --u root -p db Causes a "Can't connect to MySQL server on '192.168.1.102'". My Java application isn't connecting either, obviously. SHOW VARIABLES WHERE VARIABLE_NAME = 'port' ; returns the default port, 3306. Is there a setting that must be enabled to allow remote connections into MySQL? I have recently had the same problem

Connecting to Postgresql in a docker container from outside

a 夏天 提交于 2019-11-27 09:58:37
I have Postgresql on a server in a docker container. How can I connect to it from the outside, that is, from my local computer? What setting should I apply to allow that? lvthillo You can run Postgres this way (map a port): docker run --name some-postgres -e POSTGRES_PASSWORD=mysecretpassword -d -p 5432:5432 postgres So now you have mapped the port 5432 of your container to port 5432 of your server. -p <host_port>:<container_port> .So now your postgres is accessible from your public-server-ip:5432 To test: Run the postgres database (command above) docker ps CONTAINER ID IMAGE COMMAND CREATED

Unable to create connectionstring for a remote desktop for a C# application

廉价感情. 提交于 2019-11-27 08:47:15
问题 I want to create a Windows service which will copy data from one database to another database. The source database is in a remote location, below is the function using SqlConnectionStringBuilder and creating the connection string: public string CreateConnectionString() { SqlConnectionStringBuilder b = new SqlConnectionStringBuilder(); b.DataSource = "ABCKOL-BCKOFF\\SQLEXPRESS"; b.InitialCatalog = "netXs"; b.IntegratedSecurity = false; b.UserID = "userid"; b.Password = "password"; return

Enable tcp\\ip remote connections to sql server express already installed database with code or script(query)

帅比萌擦擦* 提交于 2019-11-27 00:20:12
I am deploying sql express with my application. I will like that database engine to accept remote connections. I know how to configure that manual by launching the sql server configuration manager, enabling tcp/ip connections, specifying the ports etc.. I am wondering if it will be possible to do the same thing from the command line. Or maybe I will have to create a "SQL Server 2008 Server Project" in visual studio. EDIT 1 I posted the same question in here but I will like to do the same thing on a instance of sql express that is already installed. Take a look at the question in here EDIT 2 I

How do I open up my MySQL on my Raspberry Pi for Outside / Remote Connections?

拟墨画扇 提交于 2019-11-26 19:51:49
问题 I have a Raspberry Pi that stores temperature data for homebrewing activity. I am making a Spring MVC application on my computer and I want to tap the data. Both my Pi and my computer are on the local network. I can SSH and FTP into my RPi perfectly. mysql --192.168.1.102 --u root -p db Causes a "Can't connect to MySQL server on '192.168.1.102'". My Java application isn't connecting either, obviously. SHOW VARIABLES WHERE VARIABLE_NAME = 'port' ; returns the default port, 3306. Is there a

Connecting to Postgresql in a docker container from outside

心已入冬 提交于 2019-11-26 12:34:00
问题 I have Postgresql on a server in a docker container. How can I connect to it from the outside, that is, from my local computer? What setting should I apply to allow that? 回答1: You can run Postgres this way (map a port): docker run --name some-postgres -e POSTGRES_PASSWORD=mysecretpassword -d -p 5432:5432 postgres So now you have mapped the port 5432 of your container to port 5432 of your server. -p <host_port>:<container_port> .So now your postgres is accessible from your public-server-ip

Enable remote connections for SQL Server Express 2012

大兔子大兔子 提交于 2019-11-25 23:01:50
问题 I just installed SQL Server Express 2012 on my home server. I\'m trying to connect to it from Visual Studio 2012 from my desktop PC, and repeatedly getting the well-known error: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a