MMCT TEAM
Server IP : 111.118.215.189  /  Your IP : 216.73.216.66
Web Server : Apache
System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : a1673wkz ( 2475)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /usr/share/doc/lynx-2.8.8/samples/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //usr/share/doc/lynx-2.8.8/samples/keepviewer
#!/bin/sh
# This script can be invoked as a wrapper for an external viewer by lynx, e.g., 
# given this line in lynx.cfg
#	XLOADIMAGE_COMMAND:keepviewer xli %s &
# it will invoke xli on a hardlink to the file (which is assumed to be in the
# temporary directory created by lynx), and clean up when the viewer exits.
#
# Parameters:
#	$1 is viewer
#	$2 is filename
if test $# = 2 ; then
	chmod 600 $2
	myfile=`echo $2 | sed -e 's@\(.*/tmp/\)\([^/]*/\)\?\(.*\)@\1my\3@'`
	ln $2 $myfile || exit 1
	trap "rm -f $myfile" 0 1 2 5 15
	eval $1 $myfile
else
	echo "Usage: keepviewer <viewer> <filename>"
	exit 1
fi

MMCT - 2023