10-21-2007
thread closed, regarding the rules
(4) No duplicate or cross-posting
(6) Do not post classroom or homework problems.
by pressy
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
This is shell programming assignment.
It needs to create a file called .std_dbrc contains
STD_DBROOT=${HOME}/class/2031/Assgn3/STD_DB
(which includes all my simple database files)
and I am gonna use this .std_dbrc in my script file (read the data from the database files)
like this: .... (3 Replies)
Discussion started by: ccwq
3 Replies
2. UNIX for Advanced & Expert Users
The binary file is
ELF-64 executable object file - IA64.
How i know that the source is
Is there any comamnd in unix i can read these kind of files or use a thirty party software?
Thanks for your help (8 Replies)
Discussion started by: alexcol
8 Replies
3. Shell Programming and Scripting
Hi Experts.
I need to list the file and the filename comes from the file ListOfFile.txt.
Basicly I have a filename "ListOfFile.txt" and it contain
Example of ListOfFile.txt
/home/Dave/Program/Tran1.P
/home/Dave/Program/Tran2.P
/home/Dave/Program/Tran3.P
/home/Dave/Program/Tran4.P... (7 Replies)
Discussion started by: tanit
7 Replies
4. Programming
# include <stdio.h>
# include <fcntl.h>
# include <stdlib.h>
# include <sys/stat.h>
int main(int argc, char *argv)
{
int fRead, fPadded, padVal;
int btRead;
int BUFFSIZE = 512;
char buff;
if (argc != 4)
{
printf ("Please provide all of the... (3 Replies)
Discussion started by: naranja18she
3 Replies
5. Shell Programming and Scripting
Hi,
I have two files with the format shown below. I need to read first field(value before comma) from file 1 and search for a record in file 2 that has the same value in the field "KEY=" and write the complete record of file 2 with corresponding field 2 of the first file in to result file.
... (11 Replies)
Discussion started by: King Kalyan
11 Replies
6. Shell Programming and Scripting
I am using the while-loop to read a file.
The file has lines with null-terminated strings (words, actually.)
What I have by that reading - just a first word up to '\0'!
I need to have whole string up to 'new line' - (LF, 10#10, 16#A)
What I am doing wrong?
#make file 'grb' with... (6 Replies)
Discussion started by: alex_5161
6 Replies
7. UNIX for Dummies Questions & Answers
Hello All,
i am a newbie and need some help when reading a csv file in a bourne shell script. I want to read 10 lines, then wait for a minute and then do a reading of another 10 lines and so on in the same way. I want to do this till the end of file.
Any inputs are appreciated
... (3 Replies)
Discussion started by: victor.s
3 Replies
8. Shell Programming and Scripting
Hi,
I am facing issues with the below:
I have a lookup file say lookup.lkp.This lookup.lkp file contains strings delimited by comma(,).
Now i want to read this command from file and execute it.
So my code below is :
Contents in the lookup.lkp file is :
c_e,m,a,`cd $BOX | ls cef_*|tail... (7 Replies)
Discussion started by: vital_parsley
7 Replies
9. Shell Programming and Scripting
I've got a file that looks like this (spaces before first entries intentional):
12345650-000005000GL140227 ANNUAL HELC FEE EN
22345650-000005000GL140227 ANNUAL HELC FEE EN
32345650-000005000GL140227 ANNUAL HELC FEE EN
I want to read through the file line by line,... (6 Replies)
Discussion started by: Scottie1954
6 Replies
10. Shell Programming and Scripting
I have files named with different prefixes. From each I want to extract the first line containing a specific string, and then print that line along with the prefix.
I've tried to do this with a while loop, but instead of printing the prefix I print the first line of the file twice.
Files:... (3 Replies)
Discussion started by: pathunkathunk
3 Replies
LEARN ABOUT OSX
crosshair
crosshair(n) Crosshairs crosshair(n)
__________________________________________________________________________________________________________________________________________________
NAME
crosshair - Crosshairs for Tk canvas
SYNOPSIS
package require Tcl ?8.4?
package require Tk ?8.4?
package require crosshair ?1.0.2?
crosshair::crosshair w ?arg...?
crosshair::off w
crosshair::configure w ?arg...?
crosshair::track on w cmdprefix
crosshair::track off w
_________________________________________________________________
DESCRIPTION
The crosshair package provides commands to (de)activate and track crosshairs on canvas widgets.
API
The following commands are exported to the public:
crosshair::crosshair w ?arg...?
This command activates the display of a pair of cross-hairs for the canvas widget w. The cross-hairs track the pointing device. The
result of the command is the empty string.
All arguments after the widget w are treated as options as for a canvas line item in w. Of particular interest are -fill and -dash.
crosshair::off w
This command removes the cross-hairs from the canvas widget w. Nothing is done if the widget had no cross-hairs. The result of the
command is the empty string.
crosshair::configure w ?arg...?
This command changes the appearance of the cross-hairs in the canvas widget w. It is an error to call it for a canvas which has no
cross-hairs.
All arguments after the widget w are treated as options as for a canvas line item in w. Of particular interest are -fill and -dash.
The result of the command are the current configuration settings.
crosshair::track on w cmdprefix
This command activates reporting of the location of the cross-hairs in the canvas widget w. It is an error to use this command for a
canvas which has no cross-hairs. The result of the command is the empty string.
After the invokation of this command the specified command prefix cmdprefix will be called whenever the mouse moves within the can-
vas, with 7 arguments. These are, in order:
[1] The widget w
[2] The x-location of the cross-hairs, in pixels.
[3] The y-location of the cross-hairs, in pixels.
[4] The x-location of the top-left corner of the viewport, in pixels.
[5] The y-location of the top-left corner of the viewport, in pixels.
[6] The x-location of the bottom-right corner of the viewport, in pixels.
[7] The y-location of the bottom-right corner of the viewport, in pixels.
A previously existing callback for w will be disabled. I.e. per canvas widget with cross-hairs only one callback reporting their location
is possible.
crosshair::track off w
This command disables the reporting of the location of the cross-hairs in the canvas widget w. It is an error to use this command
for a canvas which has no cross-hairs. The result of the command is the empty string.
BUGS, IDEAS, FEEDBACK
This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category tklib ::
crosshair of the Tcllib SF Trackers [http://sourceforge.net/tracker/?group_id=12883]. Please also report any ideas for enhancements you
may have for either package and/or documentation.
KEYWORDS
canvas, cross-hairs, location, tracking, viewport
COPYRIGHT
Copyright (c) 2003 Kevin Kenny
Copyright (c) 2008 (docs) Andreas Kupries <andreas_kupries@users.sourceforge.net>
crosshair 1.0.2 crosshair(n)