Hello.
Consider the following magic words:
# ls `which adduser`
ls: /usr/sbin/adduser: No such file or directory
#
Hmmm...
Then:
# ls /usr/sbin/adduser
/usr/sbin/adduser
#
Now what?
Unforunately this little sniippet is used in my debian woody server's mysql pre install script.... (2 Replies)
HI all,
i want to run various Unix cmds thru a java prg. following is the code which i have written.
-------------------------------------------------------------------
import java.io.*;
class Run
{
public static void main(String args)
{
String ls_str;
try{
Process cmd_su =... (1 Reply)
I have a script with a find command using xargs to copy the files found to another directory. The find command is finding the appropriate file, but it's not copying. I've checked permissions, and those are all O.K., so I'm not sure what I'm missing. Any help is greatly appreciated.
This is... (2 Replies)
I am trying to copy 2 types of files so I can archive them. I tested with a set of commands:
touch -t $(date -d "-60 day" +%Y%m%d) WORKDIR/REF
find TARGETDIR/ -type f -maxdepth 1 -iname \*.out\* -or -iname \*.log\* ! -newer WORKDIR/REF -exec ls -l {} \;
This correctly lists any files in the... (2 Replies)
how unix users able to change their password even if they have only read permissions and how backend process will be happening can u explain me which are files need to involved in this process (3 Replies)
I have the following files in a directory
> ls -1 /tmp/test/dir/
file with spaces 1.ogg
file with spaces 2.oggI am running the following to echo the filenames but alter the file extension on the files to .mp3 instead of .ogg ( I am going to run ffmpeg against the files ultimately, but keeping... (2 Replies)
I ran into the following and still do not understand entirely the rationale behind this. If someone could explain why things are as they are I'd be thankful.
The following was tested on AIX 7.1 with ksh88, but i suspect that to be ubiquitous. In an installation routine i had to create a set of... (6 Replies)
Greetings,
For housekeeping, I use the following command:
find /some/path -type f -name "*log*" ! -exec fuser -s "{}" 2>/dev/null \; -exec ls -lh {} \;
It finds all log files not currently in use by a process and manipulates them.
This command always works on linux and redhat machines,... (2 Replies)
Discussion started by: dampio
2 Replies
LEARN ABOUT MOJAVE
canvas_zoom
canvas::zoom(n) Variations on a canvas canvas::zoom(n)
__________________________________________________________________________________________________________________________________________________NAME
canvas::zoom - Zoom control for canvas::sqmap
SYNOPSIS
package require Tcl 8.4
package require Tk 8.4
package require snit
package require uevent::onidle
package require canvas::zoom ?0.2.1?
::canvas::zoom pathName ?options?
_________________________________________________________________DESCRIPTION
This package provides a widget to enable the user of a map display to control the zoom level.
API
::canvas::zoom pathName ?options?
Creates the zoom control widget pathName and configures it. The methods and options supported by the new widget are described in the
following sections.
The result of the command is pathName.
OPTIONS
-orient
The value for this option is either vertical, or horizontal, specifying the orientation of the major axis of the widget. The default
is vertical.
-levels
The value for this option is a non-negative integer. It specifies the number of zoom levels to support.
-variable
The value for this option is the name of a global or namespaced variable which is connected with the widget. changes to the zoom
level made the widget are propagated to this variable, and in turn changes to the variable are imported into the widget.
-command
This option specifies a command prefix. This callback will be invoked whenever the zoom level is changed. It is called with two
additional arguments, the zoom control widget, and the new zoom level, in this order.
METHODS
The widget supports no methods beyond the standard (configure, cget, etc.).
KEYWORDS
zoom
canvas 0.2.1 canvas::zoom(n)