Unix/Linux Go Back    

Shell Programming and Scripting BSD, Linux, and UNIX shell scripting — Post awk, bash, csh, ksh, perl, php, python, sed, sh, shell scripts, and other shell scripting languages questions here.

Exit script and open program via other user

Shell Programming and Scripting

Thread Tools Search this Thread Display Modes
Old Unix and Linux 05-19-2017   -   Original Discussion by defs
defs defs is offline
Registered User
Join Date: Jan 2017
Last Activity: 22 May 2017, 7:52 AM EDT
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Exit script and open program via other user

Hello all..
so i have a problem i need to solve ..

#! /bin/bash 
 dtterm -title my_prog -e su -user -c 'export DISPLAY=:0.0 ; /path/to/my/prog' & 2> /dev/null

This script will work on solaris 10 system in right clikt menu - in a secure system so i need to make it safe..
Now for this far it is working.. when i open my_prog it closes the dtterm consolu.. but for now problem is that i need in this script
remove "menu bar" and "right click menu bar" from the dtterm so noone can open a new colsule if someone have an idea please share it Linux

Moderator's Comments:
Exit script and open program via other user Please use CODE tags as required by forum rules!

Last edited by defs; 05-22-2017 at 08:52 AM.. Reason: Added CODE tags.
Sponsored Links

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Exit user in bash script maerlyngb Ubuntu 3 10-14-2013 05:34 PM
Create user if UID not exist; else, exit the script dirkaulo Shell Programming and Scripting 4 12-12-2012 03:57 AM
Exit script if the user dosent enter any data within 5 seconds frozensmilz Shell Programming and Scripting 3 03-18-2009 04:30 AM
Script to open program and send/execute command in program tuathan UNIX for Dummies Questions & Answers 1 11-19-2008 09:59 PM
exit script if user input not four characters ajp7701 Shell Programming and Scripting 2 10-30-2008 06:48 PM

All times are GMT -4. The time now is 08:06 AM.