Hi,
I'm using Solaris 2.6 with a proprietary GUI. Is there a way to provide a user with access to a shell script from the CDE (workspace menu?). The user does not have command line (terminal) access.
user "operator" logs into the solaris CDE. The GUI (for a sophisticated print spooler/manager) login is set to auto-popup. There is no front panel, but there is a workspace menu. The programs list of the menu is limited to clock & calculator. I am thinking it is not possible for this user to execute a shell script without the ability to open a terminal.
Perhaps if the user is given access to the
file manager tool as well, and the script is
in a directory accessable to the user and the
script is executable, the user may be able to
execute it from there assuming it is not
interactive. Otherwise, access to xterm might
be in order.
dtksh was developed to solve problems like this. It is an advanced form of ksh with many add-ons that result in virtually the entire x api being available to the shell programmer. The scripts are really x clients in themselves that can run without using a xterm client for support.
But its power is also its shortcoming. The learning curve is very steep. Sample code:
That put a pushable button on the screen. But still, if you know x and ksh very well, you can get it done.
Besides dtksh, there are other interpreted lauguages out there with a graphical interface. But dtksh is the only one I have tried.
Another approach is to use html. Then you run a web server and web browser on the same box and let the operator fire up the browser. html is much easier than x.
Hi,
I have a script which does couple of database connection and run some SELECT queries to get some output in the file.
I am surprised to see :eek: that when i run my script some times it gives the desired out put and sometimes it shows some error :confused: .
Suppose if i execute it say... (3 Replies)
I am using blow script :--
#!/bin/bash
FIND=$(ps -elf | grep "snmp_trap.sh" | grep -v grep) #check snmp_trap.sh is running or not
if
then
# echo "process found"
exit 0;
else
echo "process not found"
exec /home/Ketan_r /snmp_trap.sh 2>&1 & disown -h ... (1 Reply)
Hi,
I want to write a script which continuously checking status of a script running in background by nohup command. And if same script is not running then immediately start the script...please help..
i am using below command to run script
nohup system_traps.sh &
but in some... (9 Replies)
I have two CDE desktop accounts on different server (called this CDE#1, CDE#2) on the same network.
However, my current setup is connecting to the Solaris CDE#1,CDE#2 via Citrix.
My plan is to connect to CD#1 and then somehow connect to CDE#2.
How do I do this? I am just a regular user... (0 Replies)
Hello,
Do you guys by any chance know what is the best (if any ) way to move CDE configuration from a SOLARIS 10 machine to HP-UX?
Just the config (actions, text files etc).
Thanks in advance! (0 Replies)
Hi,
I have a script, running on some outside firwall server and it's log of success or failure is maintained in a file.
I want to write a script which ftp that server and reads that file and checks the logs and if failure , I will send mail notification.
Please let meknow if I am not... (1 Reply)
Hi all,
I am having a script ScriptA which is calling a script ScriptB in the same server and copying files to second server and have to execute one script ScriptC in the second server. THis First script ScriptA is the main script and i have to execute this process continously.
for Keeping... (2 Replies)
Hi,
i have a script which need to do behave differently when run as a startup process from init.d/ rc2.d script and when run manually from shell.
How do i distinguish whether my script is run by init process or by shell??
Will the command
/proc/$$/psinfo | grep "myscript" work well???... (2 Replies)
Hi All,
I have one AIX box (5.1 with CDE running) and one Linux box ( FC3 with GNOME on it). What I want to be able to do is : SSH from the Linux box into the AIX box and then open an X term to launch a X window application. I am not able to do that. My guess is that the window mangers and... (4 Replies)