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-SERVER2-ADMIN(8)					User Contributed Perl Documentation				     MONO-SERVER2-ADMIN(8)

NAME
mono-server2-admin - mono-server2 hosts file creator, hosts file is part of the debianized mod_mono package SYNOPSIS
mono-server2-admin.conf [action] [args] OPTIONS Actions: add Use 'add' if you want to create an application and want mono-server2 scripts to manage it del If you want to remove an application Args: --path The path where you have your aspx files, MUST EXISTS!, required only with add action --app The name of your application --libs If you have dlls outside your path, you must use this! --port Needed if you are running multiple virtual hosts in different ports in Apache --vhost If you want to add asp.net support to a virtualhost you must use this. Example: foobar.com DESCRIPTION
mono-server2-admin.conf is a perl tool to adminstrate your ASP.NET webapps that will be executed with mod_mono. When you try to add an application, admin.conf will verify that your path exists, if it is, it will add a directory inside /etc/xsp/conf.d with the name of your app, and also as a file with the filename format: 10_appname. This file will have the information (path, app). So, when mono-xsp-update.conf is executed it will read those dirs and create a debian.webapp in /etc/xsp that the xsp daemon will read, also with a mono-server2-hosts.conf that will have your directory settings with apache directives. Apache will read mono-server2-hosts.conf! AUTHOR
Pablo Fischer <pablo@pablo.com.mx> perl v5.14.2 2012-01-18 MONO-SERVER2-ADMIN(8)