Post
Topic
Board Services
Topic OP
Unix command/script ? 5$
by
MovieBTC
on 20/11/2016, 16:15:43 UTC
hello i need help wit ha Unix command/script, i have a RPI with some encrypted files which i want to access as fas as possible, i'd like to make a script on my computer which should do the following things automated:

SSH A@IP
[type password automated]

(once loged in)
veracrypt /home/file/Encrypted-file
(veracrypt will prompt for a mount directory which should be /home/pi/ecrypted-file)
it will then prompt for a password - Atumate the password.
it will then ask a question, just press "Enter"
it will ask a Y/N question again, select N
(decrypting will take about 5 min)

ask the user (me) to active a file by typing Y or N

if Y was chosen  a command like " elinks /home/pi/encryptedfile/test " should be activated

if N is selected, then nothing happens.