[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-crypto
Subject:    Re: losetup -p -- how?
From:       Marc Mutz <Marc () Mutz ! com>
Date:       2002-01-11 18:32:14
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thursday 10 January 2002 12:32, ragnagock@gmx.de wrote:
<snip>
> How do I use the
> losetup -p
> feature within a shell script?
<snip>

losetup -p5 [...] 5< file

reads the passphrase from "file" through file descriptor 5. The shell 
will do all opening and closing for you.

echo <pass> | losetup -p0 [...]

will read it from stdin (ie. the output of echo).

Marc

- -- 
It has become fashionable in the post Cold War world to label
opponents as terrorists [...]. By doing so, the authorities instill
within society a culture of fear, leading people to accept that their
rights (and the rights of others) be trampled on for the sake of the
common good. In other words, it justifies the loss of privacy and a
state of surveillance they would otherwise not accept. Both communism
and fascism were examples of this technique used to perfection.
                  -- John Horvath: The Internet: A Terrorist Network?
                     Telepolis 2001/08/22 (#9350)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8Py+43oWD+L2/6DgRAkQcAKDtkAKNQQbfrdqvZEEeI7hrIUQMGwCgzIuv
tMS9GMh1KCPoh4XMDEqoLdY=
=+9XM
-----END PGP SIGNATURE-----


-
Linux-crypto:  cryptography in and on the Linux system
Archive:       http://mail.nl.linux.org/linux-crypto/

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic