fixed bug in rhel 7 introduced lately on zenityin scripts loding programs from sf-lca

This commit is contained in:
2022-03-09 09:12:27 +01:00
parent 32b24c5025
commit 0ca8c3ec6d
2 changed files with 6 additions and 4 deletions

View File

@@ -1,8 +1,10 @@
#!/bin/bash
if [ -z "$1" ]
then
USER=$(zenity --entry --text="Enter user name for sf-laucher")
USER=$(zenity --entry --text="Enter user name for sf-laucher" 2>/dev/null)
else
USER=$1
fi
ssh -J $1@sf-gw $1@sf-lca launcher
ssh -J $USER@sf-gw $USER@sf-lca launcher

View File

@@ -1,8 +1,8 @@
#!/bin/bash
if [ -z "$1" ]
then
USER=$(zenity --entry --text="Enter user name for sf-laucher")
USER=$(zenity --entry --text="Enter user name for undulator pointing control" 2> /dev/null)
else
USER=$1
fi
ssh -J $1@sf-gw $1@sf-lca "cd /sf/bd/applications/UndulatorOrbit/current; bash runUndulatorOrbit.sh"
ssh -J $USER@sf-gw $USER@sf-lca "cd /sf/bd/applications/UndulatorOrbit/current; bash runUndulatorOrbit.sh"