48a7cb8730
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2828 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
17 lines
603 B
Bash
Executable File
17 lines
603 B
Bash
Executable File
#!/bin/bash
|
|
# IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html
|
|
mkdir -p /tmp/xcat
|
|
JAVADETECTED=`which javaws 2> /dev/null`
|
|
if [ -z "$JAVADETECTED" ]; then
|
|
echo "Error: javaws not in path, unable to execute remote video"
|
|
exit 1
|
|
fi
|
|
echo $rvid_jnlp > /tmp/xcat/wvid_imm_$$.jnlp
|
|
javaws /tmp/xcat/wvid_imm_$$.jnlp >& /dev/null
|
|
if [ ! -z "$rvid_mediajnlp" ]; then
|
|
echo $rvid_mediajnlp > /tmp/xcat/wvid_imm_media_$$.jnlp
|
|
javaws /tmp/xcat/wvid_imm_media_$$.jnlp >& /dev/null
|
|
rm /tmp/xcat/wvid_imm_media_$$.jnlp >& /dev/null
|
|
fi
|
|
rm /tmp/xcat/wvid_imm_$$.jnlp >& /dev/null
|