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
mono-asp-apps(1)						   User Commands						  mono-asp-apps(1)

NAME
mono-asp-apps - utility to manage ASP.NET 2.0 applications installed from RPMs SYNOPSIS
mono-asp-apps command [options] DESCRIPTION
The 'mono-asp-apps' command is useful on systems which install applications from RPM packages and when the RPM packages have been created according to the Mono RPM packaging guidelines for ASP.NET applications. The utility allows one to initialize, enable, disable and start installed applications. Note that you do not use this utility to manage applications hosted and managed by the Apache (or other) web server, only by xsp. Note that this utility is useful only on systems where at least one application packaged according to the Mono ASP.NET 2.0 RPM packaging guidelines has been installed. COMMANDS
The commands which take an application name, require the it to be one of the registered names. See the `list` command below. init APPLICATION_NAME Initializes the application named APPLICATION_NAME, if it hasn't been done already. Initialization actions performed are applica- tion specific, but may include creating databases and populating them, creating directories, downloading files etc. enable APPLICATION_NAME Enables APPLICATION_NAME for automatic start when XSP is started as part of the system bootup process. disable APPLICATION_NAME Disables APPLICATION_NAME, so that it is not started automatically when XSP is started as part of the system bootup process. start APPLICATION_NAME [server_options] Manually starts the xsp2 process passing the configuration of APPLICATION_NAME to the xsp2 process. Applications may ship with a bundled start script which will be used instead of xsp2 if present. server_options are passed verbatim to the server process. list Lists all the applications known to the utility. AUTHORS
Marek Habersack <mhabersack@novell.com> SEE ALSO
xsp(1) MORE INFORMATION
The Mono project (http://www.go-mono.com) is a collaborative effort led by Novell (http://www.novell.com) to implement an open source ver- sion of the .NET Framework. MAILING LISTS
Mailing lists are listed at the http://www.mono-project.com/Mailing_Lists mono-asp-apps 2.6.4 31 Oct 2007 mono-asp-apps(1)