01-09-2020
I defer to your superior offering (and I will steal it if I ever have a similar need
)
Kindest regards,
Robin
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a dropdown menu built in perl tk (I am using active state perl). I want to select a value from the dropdown menu and I want to be able to perform some other actions depending upon what value is selected. I have all the graphical part made but I dont know how to get the selected value. Any... (0 Replies)
Discussion started by: lassimanji
0 Replies
2. Shell Programming and Scripting
Requirement is:
1. comment and uncomment the line with Shell
Script: /opt/admin/fastpg/bin/fastpg.exe -c -=NET (using fastpg.exe as a search option)
2. display = "Commented" (when its commented) and display = "Uncommented" (when its uncommented)
Its urgent, please let me asap!!!
Thanks in... (2 Replies)
Discussion started by: anthonyraj75
2 Replies
3. Shell Programming and Scripting
Hi,
I've a list in the following format:
Empdept filedetails buildingNo Area
AAA 444 2 juy
AAA 544 2 kui
AAA 567 4 poi
AAA 734 5 oiu
AAA 444 ... (2 Replies)
Discussion started by: skpvalvekar
2 Replies
4. Shell Programming and Scripting
I have a combo.cgi here. this is linux environment
What i am going to do is this combobox will list down all the flatfile name in this /u/test/cgi-bin/List directory.
after that, i wanted it to open the flatfile and display the content of the flatfile into another listbox or textarea in this page... (0 Replies)
Discussion started by: chezy
0 Replies
5. Shell Programming and Scripting
Hi,
I have the following lines that I would like to see in an array for easy comparisons and printing:
Example 1:
field1,field2,field3,field4,field5
value1,value2,value3,value4,value5Example 2:
field1,field3,field4,field2,field5,field6,field7... (7 Replies)
Discussion started by: ejdv
7 Replies
6. Shell Programming and Scripting
Hi All,
Need a small help in writing a shell script which can delete a few lines from a file which is currently being used by another process.
File gets appended using tee -a command due to which its size is getting increased.
Contents like :
25/09/2012 05:18 Run ID:56579677-1
My... (3 Replies)
Discussion started by: nikhil8
3 Replies
7. UNIX for Dummies Questions & Answers
cd path
line1
line2
line3
line4
line5
Lets say thats the sample script...So say if i have to comment the above script, which would be the better way so that whenever i want, i cud comment or uncomment the same.
Thanks (1 Reply)
Discussion started by: saggiboy10
1 Replies
8. Shell Programming and Scripting
I have one master file "File1" with all such info in it. I need to grep each object under each list from another file "File2". Can anyone help me with a script for this.
File 1
------
List 1
Object 1
Object 2
List 2
Object 3
Object 1
List 3
Object 2
... (5 Replies)
Discussion started by: Sam R
5 Replies
9. Shell Programming and Scripting
Hello,
I have some tab delimited text data,
file: final_temp1
aname val
NAME;r'(1,) 3.28584
r'(2,)<tab>
NAME;r'(3,) 6.13003
NAME;r'(4,) 4.18037
r'(5,)<tab>
You can see that the data is incomplete in some cases. There is a trailing tab after the first column for each incomplete row. I... (2 Replies)
Discussion started by: LMHmedchem
2 Replies
10. Shell Programming and Scripting
Hello,
I need to collect some statistical results from a series of files that are being generated by other software. The files are tab delimited. There are 4 different sets of statistics in each file where there is a line indicating what the statistic set is, followed by 5 lines of values. It... (8 Replies)
Discussion started by: LMHmedchem
8 Replies
LEARN ABOUT REDHAT
tk_safeinit
Tk_Init(3) Tk Library Procedures Tk_Init(3)
__________________________________________________________________________________________________________________________________________________
NAME
Tk_Init, Tk_SafeInit - add Tk to an interpreter and make a new Tk application.
SYNOPSIS
#include <tk.h>
int
Tk_Init(interp)
int
Tk_SafeInit(interp)
ARGUMENTS
Tcl_Interp *interp (in) Interpreter in which to load Tk. Tk should not already be loaded in this interpreter.
_________________________________________________________________
DESCRIPTION
Tk_Init is the package initialization procedure for Tk. It is normally invoked by the Tcl_AppInit procedure for an application or by the
load command. Tk_Init adds all of Tk's commands to interp and creates a new Tk application, including its main window. If the initializa-
tion is successful Tk_Init returns TCL_OK; if there is an error it returns TCL_ERROR. Tk_Init also leaves a result or error message in
interp->result.
If there is a variable argv in interp, Tk_Init treats the contents of this variable as a list of options for the new Tk application. The
options may have any of the forms documented for the wish application (in fact, wish uses Tk_Init to process its command-line arguments).
Tk_SafeInit is identical to Tk_Init except that it removes all Tk commands that are considered unsafe. Those commands and the reasons for
their exclusion are:
bell Continuous ringing of the bell is a nuisance.
clipboard
A malicious script could replace the contents of the clipboard with the string "rm -r *" and lead to surprises when the contents of
the clipboard are pasted.
grab Grab can be used to block the user from using any other applications.
menu Menus can be used to cover the entire screen and to steal input from the user.
selection
See clipboard.
send Send can be used to cause unsafe interpreters to execute commands.
tk The tk command recreates the send command, which is unsafe.
tkwait Tkwait can block the containing process forever
toplevel
Toplevels can be used to cover the entire screen and to steal input from the user.
wm If toplevels are ever allowed, wm can be used to remove decorations, move windows around, etc.
KEYWORDS
safe, application, initialization, load, main window
Tk 8.0 Tk_Init(3)