unable to run mono app using .sh script


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting unable to run mono app using .sh script
# 1  
Old 03-17-2009
unable to run mono app using .sh script

I did a search for this problem but couldn't find any specific answers to my problem.

We have a .NET application compiled in SharpDevelop for Mono which we want to execute with a .sh shell script on Ubuntu. When we execute the script nothing happens meaning the application's visual interface doesn't appear and we also get no errors at all.

Here is the script:


#! /bin/sh
export DISPLAY=:0.0
cd /home/oculus/OculusServiceHost
/usr/bin/mono Oculus.Console.exe $@


Now, if I execute the very last line by itself, with or without the $@, in a Terminal window it executes the application successfully and the application's visual interface appears.

Do we have the script parameters wrong perhaps?
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Red Hat

Unable to get a Xterm or X app to appear under a Linux Gnome Desktop

I want to have a xterm or xapplication from a Solaris client to appear on my RHEL Server running GNOME desktop. It may sound easy at first but, I have done the basics and I be stuck. Have Tried: Linux - logged in as root, open a Terminal and did a echo $DISPLAY and it reports back :0.0 I... (7 Replies)
Discussion started by: mrmurdock
7 Replies

2. UNIX for Advanced & Expert Users

Unable to run the script on remote machine Using Expect script

Not able to execute the file in remote host using except utility I am automating the SFTP keys setp process: So i created the expect script for controlling the output of shell below is my main code: Code: #!/usr/bin/expect set fd set password close $fd set df set app close $df... (1 Reply)
Discussion started by: Manoj Bajpai
1 Replies

3. Shell Programming and Scripting

Script to run files with an app

hello, I need help in Unix scripting I have a whole list of file name in a Input file. I need to run the command iteratively and output the result into a text file e.g While read < Input file ; do QUERY filenane done > output.txt Appreciate your help Thank you Suhas;) (8 Replies)
Discussion started by: Suhas Kurse
8 Replies

4. Shell Programming and Scripting

php file unable to run shell script with arguments

echo $result=exec("./permit.sh".$_FILES); pls suggest some other method to run shell script in php .:wall::mad: (0 Replies)
Discussion started by: upvan111
0 Replies

5. SuSE

Unable to Run a script at startup in suse

Hi I have a script myscript.sh that needs to be run whenever the server boots. The script is actually logging Syslog-ng messages to sql server. I need to lauch it at startup I have copied the script in etc/init.d i have also added the link ln -s /etc/init.d/syslog-ng-mssql-pipe.sh... (5 Replies)
Discussion started by: SystemEng
5 Replies

6. Shell Programming and Scripting

Bash Script: Trouble unable to run

I am trying to create a menu, and the script fails on ln 38 (Files in pwd). Any idea on where the problem is?? Thanks for the help Rob #!/bin/bash # Cool Script for Weekly Assignment 2 (#3) that creates a menu to act as a ui # and run some popular commands. clear while : do ... (9 Replies)
Discussion started by: rchirico
9 Replies

7. UNIX for Advanced & Expert Users

run win app on Linux -performance issue

We develop software for diagnostic tools for cars. we a use a portable PC(x86) runs Win98 to run our applications. Hence the working environment in the company is Windows, specifically we use BASIC to develop the GUI, communication functions, DLL, etc. and run them on the Win98 PC. We suggested... (1 Reply)
Discussion started by: raedbenz
1 Replies

8. Shell Programming and Scripting

unable to run a script

thi is (10 Replies)
Discussion started by: angelina
10 Replies

9. UNIX for Dummies Questions & Answers

how to run app in BSD under OS X

Hi, I have a problem running application in BSD in os x. I want to run a app called "iCab", so i type "./iCab"...it then gave me a load of "A^@A^@A^@A^@A^@A^@A^@A^@..." OS X is BSD, so this should mean that i can be able to use the terminal to launch stuff; right? and also, how can i... (2 Replies)
Discussion started by: ah54wxcr4
2 Replies
Login or Register to Ask a Question
macpack(Mono 1.0)														 macpack(Mono 1.0)

NAME
macpack - Macintosh OS X Packager for managed gui assemblies SYNOPSIS
macpack [options] assembly DESCRIPTION
macpack is a tool used to package managed assemblies (like System.Windows.Forms or Cocoa#) that require gui availability for deployment on Mac OS X. macpack will prepare a OS X compatible bundle from the provided assembly and resources. The bundle will include the specified assembly as well as any of the provided resources (specified with the -resource: switch). Developers can specify the kind of application to produce using the -mode: argument. This controls how the environment in the Mono class libraries is setup. OPTIONS
-a assembly This option tells macpack where the managed assembly that you want to bundle resides. This option is also used to point to the shell script to launch in the case of a X11/Gtk# application. This is the same as just passing the assembly as an argument. -m [winforms,x11,console,cocoa] or -mode:[winforms,x11,console,cocoa] A value indicating the kind of application: WinForms is a Winforms application running on Quartz; X11 is an application that requires the X11 server to run; console is a non-graphical application; cocoa is an application based on Cocoa# -n NAME or -appname:NAME This option specifies the application name of the emitted bundle. This is what you will see in Finder. -o DIRECTORY or -output:DIRECTORY This option specifies the path to output the generated Application. -r RESOURCE or -resource:RESOURCE This option can be specified multiple times. It will place a copy of each resource into the bundles resources directory. Alternatively, you can use a comma separated list of resources. AUTHOR
Geoff Norton WEB SITE
Visit: http://www.mono-project.com for details macpack(Mono 1.0)