shell


How to run a program with arguments with MONO?


I have a program that receives input arguments:
$ myProgram.exe -arg1 -arg2 -arg3
in Windows that works just fine. I want to run that through MONO in linux. How do I do that?
$ mono myProgram.exe
runs the program, but how do I pass the arg1, arg2 and arg3 to myProgram.exe using MONO?
Thanks in advance!
According to the mono wiki, the syntax for invoking mono is:
mono [options] file [arguments...]
I think that options are options to mono, while arguments are arguments to the program you want to run. So just do this:
mono myProgram.exe arg1 arg2 arg3
You might also be able to execute it without explicitly calling mono. This works on some platforms and not on others:
./myProgram.exe arg1 arg2 arg3

Related Links

get the number of seconds left for the sleep command to end in a shell script
Scheduling a script
Error with shell script
Using shell script which checks if the user has logged in twice into Unix server and displays the details of the users
bad time argument filename in tmpwatch
how can we get a word in "double quotes using shell script
ssh: execute several commands
How to do in place replacement into another file in unix shell scripting
How can I pass values from a file to parameters in a shell command?
replace a pipe delimited column using awk
Can one read input into a element of a associative array?
Error on importing 40M+ data using neo4j-import tool
Shell Restore Using Tar
Missing new line in executing diff
Arrow keys not working in shell
Add the specific hour to a given date in shell script

Categories

HOME
facebook-oauth
twitter-bootstrap-3
adal
telegram
phpmyadmin
sh
knitr
nuget
rendering
3d-reconstruction
mapbox
gluon-mobile
boto3
title
commonjs
favicon
shared-libraries
asp.net-mvc-viewmodel
soci
digital-signature
swagger-2.0
googlebot
spring-async
gulp-watch
event-store
short-url
oculus
comparable
sqlpackage
vex
twiml
constexpr
kodi
r-grid
gojs
instantiation
sim-toolkit
timing
sim-card
xv6
branching-and-merging
install.packages
logback-groovy
apollostack
apache-directory
linter
robomongo
wcftestclient
carrot2
lrs
uicolor
clipboard.js
project-organization
dbamp
uiactionsheet
thread-sleep
invoke-sqlcmd
relativelayout
vhosts
roadkill-wiki
forwarding
xvim
intel-c++
coda
j-security-check
dot.js
qtwebengine
angular-gettext
deform
entry-point
ios8-extension
paste
syndicationfeed
ecslidingviewcontroller
android-usb
away3d
hidapi
mvc-editor-templates
epiceditor
stacky
cardreader
midlet
floating-point-exceptions
google-maps-mobile
flex-mobile
timthumb
event-receiver
squishit
load-time
resharper-6.0
uideviceorientation
eclipse-marketplace
pagemethods
dsl-tools
scrubyt

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App