Author

Topic: Unix command/script ? 5$ (Read 181 times)

legendary
Activity: 1988
Merit: 1317
Get your game girl
November 20, 2016, 12:23:41 PM
#2
Inbox me,I can do it.Away from my machine at the moment,will work on it once I reach home.
full member
Activity: 156
Merit: 100
November 20, 2016, 11:15:43 AM
#1
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.
Jump to: