Problem running script remotelly.


 
Thread Tools Search this Thread
Operating Systems Solaris Problem running script remotelly.
# 1  
Old 09-01-2005
Question Problem running script remotelly.

Hi, i would like a help with this problem.

i have the following situation:

4 workstations SUNs:
SunOS porsche 5.8 Generic_117350-18 sun4u sparc SUNW,Sun-Blade-100
SunOS jaguar 5.8 Generic_108528-18 sun4u sparc SUNW,Sun-Blade-100
SunOS mercedes 5.8 Generic_117350-18 sun4u sparc SUNW,Sun-Blade-100
SunOS bmw 5.8 Generic_117350-18 sun4u sparc SUNW,Sun-Blade-100

1 workstation HP:
HP-UX mazda B.10.20 A 9000/777 2015802992 two-user license

I need to remotelly run a script from mazda to those SUNs workstations, the script
works on all but porsche. Ive tryied to execute the script with different users
and always i get the same results.

Here is an exemplo running the script in mercedes:
gama@jaguar:~> xhost +
access control disabled, clients can connect from any host
gama@jaguar:~> rlogin mazda
gama@mazda:~> setenv DISPLAY jaguar:0.0
gama@mazda:~> laut cagiva
FATAL ERROR from device-driver: TRACE32 (cagiva) not responding
gama@mazda:~>

In this exemplo the script worked fine, this error is related to a machine that
is down, i just need to get this error to know if the script works or not.

Now is an exemplo running the script in porsche:
gama@porsche:~> xhost +
access control disabled, clients can connect from any host
gama@porsche:~> rlogin mazda
gama@mazda:~> setenv DISPLAY porsche:0.0
gama@mazda:~> laut cagiva

The prompt keeps locked and i get no answer.

All files that the script uses are common to all the SUNs workstations, they mount the filesystems from a NFS server.

I have also more HP workstations with HP-UX10.20 and HP-UX11.0 and when i use them
I get the same results as in mazda.

Im running the following script:
#!/bin/csh
########################################################################
# Script file para lauterbach (site Hortolandia)
#
# Uso: executar o script do diretorio di emulacao do projeto
########################################################################
# Acrecentada a variavel ROOT_DIR para emul project con subdirtorios (5AF)
# M.Bosco 28/1/2002

if ($#argv == 0 || $#argv > 2) then
echo '-----------------------------------------------------------------'
echo '--- Script file de start do ambiente de emulacao Lauterbach ---'
echo '-----------------------------------------------------------------'
echo ' Executar a partir de um diretorio de emulacao do projeto'
echo ' Ex: /shared_data/ccm/sync/CM_1_45_DSMHO/4LV,39_66/4LV/emul'
echo ''
echo ' Sintaxe: laut <emul_name> [int_type]'
echo ' emul_name = nome unix do emulador (suzuki, honda, ...)'
echo ' int_type = tipo de ambiente grafico:'
echo ' 1 ==> standard primeira versao'
echo ' 2 ==> standard ultima versao'
echo ' 3 ==> cde ultima versao (default)'
exit 1
endif

set node_name = $1
set laut_path = /tools/others/emulator/lauterbach/t32_new
set exe_name = bin/t32cde
set hhelp_dir = hhelp

if ($#argv == 2) then
switch ($2)
# n. 1 ==> standard primeira versao
case 1:
set laut_path = /tools/others/t32
set exe_name = hp9000_700/t32
set hhelp_dir = ''
breaksw
# n. 2 ==> standard ultima versao
case 2:
set laut_path = /tools/others/emulator/lauterbach/t32_new
set exe_name = bin/t32old
set hhelp_dir = hhelp
breaksw
# 3 ==> cde ultima versao (default)
case 3:
set laut_path = /tools/others/emulator/lauterbach/t32_new
set exe_name = bin/t32cde
set hhelp_dir = hhelp
breaksw

default:
echo "Error: O segundo parametro do script pode ser entre as seguintes opcoes"
echo ' 1 ==> standard primeira versao'
echo ' 2 ==> standard ultima versao'
echo ' 3 ==> cde ultima versao (default)'
echo "Script aborted"
exit 1
breaksw
endsw
endif

if (! -f $laut_path/config.${node_name} ) then
echo "Error: Nao existe o emulador ${node_name} para o ambiente escolhido"
echo " file ${laut_path}/config.${node_name} nao encontrado"
echo "Script aborted"
exit 1
endif

# Para projetos normais
setenv PROJ_DIR `dirname $PWD`
# Para projetos emul que tem subdiretorios emul_fire/emul_ice (5AF)
setenv ROOT_DIR `dirname $PROJ_DIR`
setenv T32SYS $laut_path
if ( "${hhelp_dir}" != "") then
setenv HHHOME ${T32SYS}/${hhelp_dir}
endif
setenv FONTPATH ${T32SYS}/fonts
setenv T32CONFIG ${T32SYS}/config.${node_name}
/usr/bin/X11/xset fp+ ${FONTPATH}
${T32SYS}/${exe_name}
/usr/bin/X11/xset -fp ${FONTPATH}

Does anybody have an idea how to solve it? Smilie
Thanks
# 2  
Old 09-01-2005
Hi again,

Ive said that when executing the script from mazda to porsche the prompt kept lock but i realised that after about 30 minutes the prompt returns with the following error message:
X connection to porsche:0.0 broken (explicit kill or server shutdown).

Thanks
# 3  
Old 09-01-2005
It seems to me that there is no problem there at all, the x server on porsce is "open" so the gui you are running is starting, on the other machines it is not.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Problem on running a script

Hi all, Running follow command on terminal; $ glance -T cloudlive -I ubuntu -K ubuntu123 -N \ http://127.0.0.1:5000/v2.0/OpenX add name="cirros" is_public=true \ container_format=ovf disk_format=raw < \ /srv/cirros-0.3.0-x86_64-disk.img It works without problem. Putting it on a... (5 Replies)
Discussion started by: satimis
5 Replies

2. Emergency UNIX and Linux Support

Problem with running Ghost Script

I have getting problem with running gs on a non global zone. This is new zone. Seems something to do with library, but I am not getting correct pointer. -bash-3.00$ which gs /usr/local/bin/gs -bash-3.00$ gs ld.so.1: gs: fatal: libcairo.so.2: open failed: No such file or directory Killed... (3 Replies)
Discussion started by: solaris_1977
3 Replies

3. Shell Programming and Scripting

Problem running a program/script in the background from a script

Hi all, I have a script that calls another program/script, xxx, to run in the background. Supposedly this program at most should finish within five (5) minutes so after five (5) minutes, I run some other steps to run the script into completion. My problem is sometimes the program takes... (5 Replies)
Discussion started by: newbie_01
5 Replies

4. Shell Programming and Scripting

Problem with crontab running a script

I am trying to use the CRON utility in Fedora 11 & CentOS... I intend to run a script which pops up a warning message every hour and i made the following entry using "CRONTAB -e " * * * * * sh /bin/myscript.sh But this does not seem to be running. Another thing to note is that,... (4 Replies)
Discussion started by: Vabiosis
4 Replies

5. Shell Programming and Scripting

Problem in running a shell script

Hi, I'm trying to run a simple shell script whose contents are pasted below. #!/usr/bin/ksh echo $PATH performbuild { echo "Inside performBuild function" } echo "Main Shell started" performbuild echo "Main Shell ended" DV> ls -ltr total 48 -rwxr-xr-x 1 pb5377 it-ibm ... (5 Replies)
Discussion started by: blp_18
5 Replies

6. Shell Programming and Scripting

K script not running / syntax problem

Hi, I have following K script, that is in rc0.d directory to be run on shutdown. It's linked using the 'ln' command to init.d.Can anyone tell me as to why it's not running, or if i have incorrect syntax?I get: "test: argument expected type=uname -p + " When running it with sh -x ... (8 Replies)
Discussion started by: darrlaw
8 Replies

7. Shell Programming and Scripting

running perl script problem

While executing perl scriptit gives some compling issue, please help out $inputFilename="c:\allways.pl"; open (FILEH,$inputFilename) or die "Could not open log file"; Error : Could not open log file at c:\allways.pl line 4 learner in Perl (1 Reply)
Discussion started by: allways4u21
1 Replies

8. Shell Programming and Scripting

Problem with running the remote script

Hi All, I am running a script which is present on remote machine using ssh command. the remote script is failing when try to load a property file. It says file does not exist. Any idea what should be the problem for this. Thanks Supriya. (7 Replies)
Discussion started by: supriyabv
7 Replies

9. UNIX for Dummies Questions & Answers

problem running script

hey, i'm trying to run several processes due 2 loops : the code is: cd ${TIBCO_HOME}/tra/domain/${DOMAIN}/application/ for app_name in ls * do echo $app_name if && && ; then exit else echo $app_name cd $app_name pwd for ps_name in ls *.sh do echo... (2 Replies)
Discussion started by: ohadr
2 Replies

10. Shell Programming and Scripting

Problem in Running Script

Hi friends, i have written one small script named as "size.sh"..... while running its giving syntax error at line no 2: 'str=$' unexpected. How to run this file ??? please help me. file content is : ----------------------------- #!/bin/sh str=$( df -k | grep /usr/local)... (14 Replies)
Discussion started by: samfrance
14 Replies
Login or Register to Ask a Question