communicating with external linux application

I want to run my Unity application on Linux as a standalone. I am done with the project and its working flawlessly in Linux. The issue am facing is to make unity application communicate with an external application.
What I want to do here is, I have an application on my Linux machine which i want to use for, to make a call to a function in Unity standalone application, So that when the function is called the Unity application comes to the front and executes with the values of those parameters. And once the Unity application is done with its operation, it minimizes it self and makes a call to that Linux application.
I have no idea how to send are receive messages through external applications, to unity application to that unity application can work.

Please help, And also i need help with minimizing and maximizing of unity standalone application.

You could set up a TCP socket to communicate with other programs. I’m also currently doing this with a python script that runs in the background.

As for minimizing or maximizing on linux, If the .net windows code doesn’t work, you could download a bash script that does such function. Copy paste it into your resource folder and execute the bash script from your C#/script :slight_smile:

Ps: sorry for not providing any links, I’m on my phone and when I switch tabs this page gets refreshed, writing this the 3th time lol

Goodluck :wink:

EDIT:

Run bash script from C# example:
/*$ cat /tmp/bash.sh

  • #!/bin/bash

  • echo “bla $1”
    */
    using System;
    using System.Diagnostics;

    class Runshell
    {
    static void Main()
    {
    ProcessStartInfo psi = new ProcessStartInfo();
    psi.FileName = “/tmp/bash.sh”;
    psi.UseShellExecute = false;
    psi.RedirectStandardOutput = true;

     psi.Arguments = "test";
     Process p = Process.Start(psi);
     string strOutput = p.StandardOutput.ReadToEnd();
     p.WaitForExit();
     Console.WriteLine(strOutput);
    

    }
    As for the bash script to minimize or maximize, i just hit google:

http://askubuntu.com/questions/4876/can-i-minimize-a-window-from-the-command-line