mirror of
https://github.com/balkian/dotfiles.git
synced 2024-11-21 11:42:28 +00:00
Added lncuevana
This commit is contained in:
parent
72c2448793
commit
28b14bc7aa
14
lncuevana.sh
Executable file
14
lncuevana.sh
Executable file
@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
# Script to copy Cuevana files to your home directory.
|
||||
# Tested only with one cuevana instance at a time.
|
||||
# The video can be played, but I need to test if it's deleted when the flash player is closed.
|
||||
# @author: balkian
|
||||
|
||||
destfile="$HOME/VideoCuevana$$"
|
||||
info=($(lsof -c /npview/i | grep -i /tmp/flash | awk '{print $2; print $9}'))
|
||||
dir="/proc/${info[0]}/fd"
|
||||
file=${info[1]}
|
||||
#echo "pid" $pid
|
||||
#echo "file" $file
|
||||
fdn=$(ls -l $dir | grep $file | awk '{print $8}')
|
||||
ln -s $dir/$fdn $destfile && echo "Video linked successfully to $destfile." && echo "Enjoy"
|
Loading…
Reference in New Issue
Block a user