Quantcast
Channel: Active questions tagged ssh - Ask Ubuntu
Viewing all articles
Browse latest Browse all 879

How to create custom command mapped to dotnet console application [duplicate]

$
0
0

On ubuntu machine I create a C# dotnet console project myapp and publish it as a self contained application. It creates a new build and pushes to a directory.

Now I can simply cd to the directory where it is published and run from bash ./myapp "arg1"

I wonder how do I make my own global linux command so that it will be executed from anywhere without cding to the directory.

e.g. I ssh to my ubuntu and execute my custom command

myapp "arg1"

Viewing all articles
Browse latest Browse all 879

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>