| Server IP : 104.21.94.62 / Your IP : 216.73.216.81 Web Server : Apache System : Linux semi1.us.cloudlogin.co 5.10.244-xeon-hst #1 SMP Sun Sep 14 17:09:20 UTC 2025 x86_64 User : xessglobal ( 271017) PHP Version : 8.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : ON Directory : /proc/self/root/bin/ |
Upload File : |
#!/bin/sh
set -e
if [ "x$1" = "x" ]; then
echo "Usage: [options] $0 file..." >&2
echo "-p Copy path information; preserve tree structure"
exit 1
fi
archive=`mktemp` || exit 1
trap 'rm -f "${archive}"' 1 2 3 15
if [ "x$1" = "x-p" ]; then
tar cf "${archive}" "$@"
else
flags="cf"
for file in "$@"; do
filedir=`dirname "${file}"`
filename=`basename "${file}"`
tar "${flags}" "${archive}" -C "${filedir}" "${filename}"
flags="rf"
done
fi
gzip -c "${archive}" | xclip -selection secondary -loops 1 -i
rm "${archive}"