8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello out there, I got this script that runs partly fine by my crontab. Problem is it gets to the sleep 300(which should be 5 minutes right?) part and never runs the rest of the scripts past that. All individual scripts run just fine. My var/mail file only shows it up to the " echo "Loader Stop... (3 Replies)
Discussion started by: vsekvsek
3 Replies
2. Programming
Hi,
I wrote a program for Windows environment. It shows a menu to choice some operations to do. Once an operation is done, it cleans the screen with a system("cls") call, and the menu is shown again.
I'd like to just clean half screen, so the program doesn't need to call again the print menu... (5 Replies)
Discussion started by: Luke Bonham
5 Replies
3. Shell Programming and Scripting
Hi Experts,
When i am trying to read a csv file ,i could find some invisible character in it.
I tried to see those characters by following code
od -c filename
It is displaying 240 for those invisible character.
can some one elobrate on this and provide solution remove those character from... (4 Replies)
Discussion started by: cnraja
4 Replies
4. Solaris
Hello All,
I have a solaris 10 sparc machine . I have installed all the locale .
hi_IN.UTF-8. and similarly for japanese. But when i am trying to insert Hindi test in a file using vi . Every thing is getting turned in dots .
Can any one help in this .I have configured the LANG and... (14 Replies)
Discussion started by: Arif29march
14 Replies
5. Programming
Help with ncurses Hi,
I need some help with ncurses.I'm supposed to write a program in C to display date and time and also to input the username and password using C.I chose ncurses for my task and here I am.
Code:
#include <stdio.h>
#include <termios.h>
#include... (1 Reply)
Discussion started by: rakesh_01
1 Replies
6. UNIX for Dummies Questions & Answers
I have an odd problem with my internet connection. I think it's software not hardware, but I'm not even certain of that. My best guess is that it relates to my recent installation of KVpnc.
I can't connect to most websites: no ping, nothing in the browser. But other websites I can connect to... (7 Replies)
Discussion started by: CRGreathouse
7 Replies
7. Shell Programming and Scripting
I have directories full of files that contain dates and times in their names in the format YYYYMMDDhhmm. So like, one of the files is named 199407271609 with no file extension.
I have this script searches a given directory and changes all creation dates of the files to match the date in their... (4 Replies)
Discussion started by: hot_pants
4 Replies
8. Shell Programming and Scripting
Hi All,
I have a problem with Null values while reading line by line from a text file. I wrote a shell script to read set of file names from a text file line by line, and zipping the each individual file and copying those zip files into some separate directory, and removing the original file... (3 Replies)
Discussion started by: npk2210
3 Replies
LOCK(1) BSD General Commands Manual LOCK(1)
NAME
lock -- reserve a terminal
SYNOPSIS
lock [-npv] [-t timeout]
DESCRIPTION
The lock utility requests a password from the user, reads it again for verification and then will normally not relinquish the terminal until
the password is repeated. There are two other conditions under which it will terminate: it will timeout after some interval of time and it
may be killed by someone with the appropriate permission.
The following options are available:
-n Do not use a timeout value. Terminal will be locked forever.
-p A password is not requested, instead the user's current login password is used.
-t timeout
The time limit (default 15 minutes) is changed to timeout minutes.
-v Disable switching virtual terminals while this terminal is locked. This option is implemented in a way similar to the -S option of
vidcontrol(1), and thus has the same restrictions. It is only available if the terminal in question is a syscons(4) or vt(4) virtual
terminal.
SEE ALSO
vidcontrol(1), syscons(4), vt(4)
HISTORY
The lock command appeared in 3.0BSD.
BSD
July 10, 2002 BSD