06-12-2009
i changed the validation above a bit i think it is OK.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am trying to think of a way to create user ids on multiple Linux systems in one fell swoop without logging onto each system indivually. Is there a way to do this with ssh commands? I don't want to use NIS/LDAP solution just a simple shell script utilitarian methodoloy would suffice. Also, I am... (1 Reply)
Discussion started by: darthur
1 Replies
2. Shell Programming and Scripting
Hello,
This may have been addressed already somewhere, however I am looking for the easiest/shortest way to validate a response from a user for a file name.
The file name should not have any of the following characters
~`!@#$%^&*()_-+={|\:;"'<,>.?/
Further the response should not have any... (2 Replies)
Discussion started by: jerardfjay
2 Replies
3. UNIX for Advanced & Expert Users
I'm kinda new to unix programming so bear with me...
I'm running a script prompting a user for an existing user and group and want to be able to validate if they valid.
Is there any code available?
Any help or push in the right direction would help.
Thank you, (2 Replies)
Discussion started by: thedon
2 Replies
4. Shell Programming and Scripting
Hi
Can you help me validate 2 variables?The first is an input date from the user and should be like this (yyyy-mm-dd). The second variable is an input time from the user and should be like this(hh:mm).When the input is wrong i want to give the chance to the user to insert again the date or time... (8 Replies)
Discussion started by: DDoS
8 Replies
5. UNIX for Dummies Questions & Answers
Hey, im trying to validate a user input and need some help. The input needs to be just a single letter. Im using a case to so this eg:
read answer
case $answer in
*) echo "OK"
;;
*) echo "This is a number"
read answer
;;
*) echo... (2 Replies)
Discussion started by: 602chrislys
2 Replies
6. UNIX for Dummies Questions & Answers
Hello all:
Working on a job I was asked get a simple script to perform the following task and would like to ask for some help. I'm looking forward to learning more and diving deeper into the World of Open Source servers.
I need a script for a Unix server, using as few lines as possible, that... (4 Replies)
Discussion started by: moahten
4 Replies
7. Shell Programming and Scripting
I'm trying to only read price (FLOAT (i.e 1.10, 3.14, etc etc))
If the input is just an integer, I will add a .00 behind. (i.e 3 becomes 3.00 , 20 becomes 20.00)
If the input is without 2 decimal places, I'll add a 0. (i.e 3.1 becomes 3.10)
I tried using the below code, it works but I don't... (6 Replies)
Discussion started by: andylbh
6 Replies
8. Shell Programming and Scripting
$Input_filename=$ARGV;
if (!-d $Input_filename && ! -e $Input_filename)
{
print "USAGE: Please enter '$ABCD/def/dsed.txt' as an arguement \n";
exit;
}
1. Input Is suppose to be something like "$ABCD/def/dsed.txt".
if the input is wrong the script should throw an ERROR message.... (2 Replies)
Discussion started by: Rashid Khan
2 Replies
9. AIX
if I want to create a bundle of user ids on some aix servers, if there is a way not need to do "passwd username" one by one user to set the password?
Thanks (3 Replies)
Discussion started by: rainbow_bean
3 Replies
LEARN ABOUT CENTOS
tcl_validateallmemory
Tcl_DumpActiveMemory(3) Tcl Library Procedures Tcl_DumpActiveMemory(3)
__________________________________________________________________________________________________________________________________________________
NAME
Tcl_DumpActiveMemory, Tcl_InitMemory, Tcl_ValidateAllMemory - Validated memory allocation interface
SYNOPSIS
#include <tcl.h>
int
Tcl_DumpActiveMemory(fileName)
void
Tcl_InitMemory(interp)
void
Tcl_ValidateAllMemory(fileName, line)
ARGUMENTS
Tcl_Interp *interp (in) Tcl interpreter in which to add commands.
const char *fileName (in) For Tcl_DumpActiveMemory, name of the file to which memory information will be written. For Tcl_Vali-
dateAllMemory, name of the file from which the call is being made (normally __FILE__).
int line (in) Line number at which the call to Tcl_ValidateAllMemory is made (normally __LINE__).
_________________________________________________________________
DESCRIPTION
These functions provide access to Tcl memory debugging information. They are only functional when Tcl has been compiled with TCL_MEM_DEBUG
defined at compile-time. When TCL_MEM_DEBUG is not defined, these functions are all no-ops.
Tcl_DumpActiveMemory will output a list of all currently allocated memory to the specified file. The information output for each allocated
block of memory is: starting and ending addresses (excluding guard zone), size, source file where ckalloc was called to allocate the block
and line number in that file. It is especially useful to call Tcl_DumpActiveMemory after the Tcl interpreter has been deleted.
Tcl_InitMemory adds the Tcl memory command to the interpreter given by interp. Tcl_InitMemory is called by Tcl_Main.
Tcl_ValidateAllMemory forces a validation of the guard zones of all currently allocated blocks of memory. Normally validation of a block
occurs when its freed, unless full validation is enabled, in which case validation of all blocks occurs when ckalloc and ckfree are called.
This function forces the validation to occur at any point.
SEE ALSO
TCL_MEM_DEBUG, memory
KEYWORDS
memory, debug
Tcl 8.1 Tcl_DumpActiveMemory(3)