the shebang line needs to be corrected, do not place a space between exclamation mark and slash, type it like this
Sorry, but this is not correct: in fact both shebang lines:
and
will work because the three-byte "magic number" "#!/" as well as the 4-byte magic number "#! /" is built into the UNIX-kernel. You need to use absolute pathes, though, and i.e.
will not work, regardless of a space being there or not.
Sorry, hope no one minds the linux question here, I use both unix and linux, and have come across a problem. On my linux box i have a dual boot, and i've set it up so i can access my windows data partition while in linux mode (mount the vfat partition), but linux doesn't recognize long file names,... (2 Replies)
At the dos command prompt, does anyone remember how to make it recognize long file names? ie, windows long file names for folders, my documents, if i'm at the :> prompt and want to change to that directory, how do i make it skip the space? I've tried cd "my document" cd my\documents cd 'my... (4 Replies)
Well im using mkisofs to create iso images in Solaris 10 and then i use cdrw -i to burn the images to the cd
the problem which i noticed recent ( im new to mkisofs) i noticed its break the long file names making them shorter i searched in its help and i find two parameters one -l and one... (2 Replies)
Hi,
I'm trying to display all process on an AIX server with the string SLRServer in them. Normally "ps -ef|grep SLRServer" would be sufficient, however in this instance the process name is enormous and the part which contains this string has been truncated, as you can see in the example below
... (8 Replies)
Hi
How can i dynamically read files names from a list file and execute them from a single shell script.
Please help its urgent
Thanks in Advance (4 Replies)
Hi,
What's the best way to find all files under a directory - including ones with space - in order to apply a command to each of them. For instance I want get a list of files under a directory and generate a checksum for each file.
Here's the csh script:
#!/bin/csh
set files = `find $1... (5 Replies)
I want to write a shell script that will rename all the file names to today's date attached to it..
so for example i have a file names like
file1.sales.20081201.txt.c
zbrs.salestxtn.20091101.txt.inn
then it will rename both the files with todays date to it so the file names get changed... (1 Reply)
hi i wrote following script,
#!/usr/bin/sh
for index in `ls /tmp/common/*.txt`
do
echo "$index"
done
here index is giving full path but in my program i want only file names (not along with whole path)
Eg. if in /tmp/common files are a.txt and b.txt den out should be a.txt b.txt
... (6 Replies)
Hi Guys,
I need a help. I have 1130 zip files. Each one of them has files including 1 html file with long file name (includes special charactors, Alphabetic and numbers).
I have copied all 1130 zip files to my linux system and extracted using below command.
Find . -name "*.zip" -exec... (7 Replies)
Hello,
When listing the file systems (using ls -ltr) , if the group names are longer the group name is getting truncated.
Can someone help with the script which would display the truncated group name?
I appreciate if someone could help in this regard. (1 Reply)
Discussion started by: mike12
1 Replies
LEARN ABOUT REDHAT
loadtk
Safe Tk(n) Tk Built-In Commands Safe Tk(n)
__________________________________________________________________________________________________________________________________________________NAME
loadTk - Load Tk into a safe interpreter.
SYNOPSIS
::safe::loadTk slave ?-use windowId? ?-display displayName?
_________________________________________________________________
Safe Tk is based on Safe Tcl, which provides a mechanism that allows restricted and mediated access to auto-loading and packages for safe
interpreters. Safe Tk adds the ability to configure the interpreter for safe Tk operations and load Tk into safe interpreters.
DESCRIPTION
The ::safe::loadTk command initializes the required data structures in the named safe interpreter and then loads Tk into it. The command
returns the name of the safe interpreter. If -use is specified, the window identified by the specified system dependent identifier win-
dowId is used to contain the ``.'' window of the safe interpreter; it can be any valid id, eventually referencing a window belonging to
another application. As a convenience, if the window you plan to use is a Tk Window of the application you can use the window name (eg:
.x.y) instead of its window Id ([winfo id .x.y]). When -use is not specified, a new toplevel window is created for the ``.'' window of the
safe interpreter. On X11 if you want the embedded window to use another display than the default one, specify it with -display. See the
SECURITY ISSUES section below for implementation details.
SECURITY ISSUES
Please read the safe manual page for Tcl to learn about the basic security considerations for Safe Tcl.
::safe::loadTk adds the value of tk_library taken from the master interpreter to the virtual access path of the safe interpreter so that
auto-loading will work in the safe interpreter.
Tk initialization is now safe with respect to not trusting the slave's state for startup. ::safe::loadTk registers the slave's name so when
the Tk initialization (Tk_SafeInit) is called and in turn calls the master's ::safe::InitTk it will return the desired argv equivalent
(-use windowId, correct -display, etc...).
When -use is not used, the new toplevel created is specially decorated so the user is always aware that the user interface presented comes
from a potentially unsafe code and can easily delete the corresponding interpreter.
On X11, conflicting -use and -display are likely to generate a fatal X error.
SEE ALSO
safe(n), interp(n), library(n), load(n), package(n), source(n), unknown(n)
KEYWORDS
alias, auto-loading, auto_mkindex, load, master interpreter, safe interpreter, slave interpreter, source
Tk 8.0 Safe Tk(n)