09-24-2015
They will have to press "enter" to terminate the read. Did you consider read's -t option (timeout) to terminate without ANY input?
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
when I execute some simple commands on my solaris system, I am getting the following warning message:
Could anybody tell me what could be the reason
Ex:- If I give the command,
which ls
Warning: cannot determine current directory
... (15 Replies)
Discussion started by: axes
15 Replies
2. Shell Programming and Scripting
I want to perform a task on all the files in the current directory but I'd like to loop through them one at a time. How do I tell it to give me the first filename? (2 Replies)
Discussion started by: calgone337
2 Replies
3. Shell Programming and Scripting
Hi All
I was wondering what is the most efficient way to find files in the current directory(that may contain 100,000's files), that meets a certain specified file type and of a certain age.
I have experimented with the find command in unix but it also searches all sub directories. I have... (2 Replies)
Discussion started by: kewong007
2 Replies
4. UNIX for Dummies Questions & Answers
Hi all,
I have a simple script follow:
-------------
#!/bin/bash
echo -n " Enter the date of today: "
read dateoftoday
-------------
Now I want to compare the variant $dateoftoday with date of the system (now) in order to prevent user inputs the past date to $dateoftoday. I want to make... (3 Replies)
Discussion started by: axn_boy
3 Replies
5. Shell Programming and Scripting
I wanna make a backup tarball. I wanna write a script that makes tarball of the current directory.
There are lots of files so I cant type all files, I wanna make the tarball by excluding few files.
Like there 1000 files in a directory I wanna create a tarball containing 98 files of that... (1 Reply)
Discussion started by: nishrestha
1 Replies
6. HP-UX
HPUX does not recognise \h,\w,\u to display the hostname,working directory and username respectively.
So how do i set the PS1 variable to display my current working Directory as my prompt?
I also tried PS1=$PWD,
But it keeps showing the same directory path as prompt which PWD was holding at... (3 Replies)
Discussion started by: Amit Kulkarni
3 Replies
7. UNIX for Advanced & Expert Users
Hello,
I want to use the string with the current directory in my awk command.
I tried: 'pwd=system("pwd")'
but it doesn't work. can please help somebody? (2 Replies)
Discussion started by: daWonderer
2 Replies
8. Shell Programming and Scripting
Hi all,
I need a script to delete a large set of files from a directory under / based on an input file and want to redirect errors into separate file.
I have already prepared a list of files in the input file.
Kndly help me.
Thanks,
Prash (36 Replies)
Discussion started by: prash358
36 Replies
9. UNIX for Dummies Questions & Answers
Hi, I'm very new to Unix, but have been given a command to type in which is :
mail -s <email subject goes here> <my email address> <success.txt
this command is quite a basic one and sends an email containing the contents of the file "success.txt" to whatever email I put in with the subject of... (2 Replies)
Discussion started by: rnmuk
2 Replies
10. AIX
Hi.
My example:
I have a filesystem /log. Everyday, log files are copied to /log. I'd like to set owner and permission for files and directories in /log like that
chown -R log_adm /log/*
chmod -R 544 /log/*It's OK, but just at that time. When a new log file or new directory is created in /log,... (8 Replies)
Discussion started by: bobochacha29
8 Replies
LEARN ABOUT DEBIAN
hmackeys
HMACKEYS(1) BP executables HMACKEYS(1)
NAME
hmackeys - utility program for generating good HMAC-SHA1 keys
SYNOPSIS
hmackeys [ keynames_filename ]
DESCRIPTION
hmackeys writes files containing randomized 160-bit key values suitable for use by HMAC-SHA1 in support of Bundle Authentication Block
processing, Bundle Relay Service connections, or other functions for which symmetric hash computation is applicable. One file is written
for each key name presented to hmackeys; the content of each file is 20 consecutive randomly selected 8-bit integer values, and the name
given to each file is simply "keyname.hmk".
hmackeys operates in response to the key names found in the file keynames_filename, one name per file text line, if provided; if not,
hmackeys prints a simple prompt (:) so that the user may type key names directly into standard input.
When the program is run in interactive mode, either enter 'q' or press ^C to terminate.
EXIT STATUS
0 Completion of key generation.
EXAMPLES
hmackeys
Enter interactive HMAC/SHA1 key generation mode.
hmackeys host1.keynames
Create a key file for each key name in host1.keynames, then terminate immediately.
FILES
No other files are used in the operation of hmackeys.
ENVIRONMENT
No environment variables apply.
DIAGNOSTICS
The following diagnostics may be issued to the logfile ion.log:
Can't open keynames file...
The keynames_filename specified in the command line doesn't exist.
BUGS
Report bugs to <ion-bugs@korgano.eecs.ohiou.edu>
SEE ALSO
brsscla(1), ionsecadmin(1)
perl v5.14.2 2012-05-25 HMACKEYS(1)