Sponsored Content
Full Discussion: bc cammand in UNIX
Top Forums UNIX for Dummies Questions & Answers bc cammand in UNIX Post 4683 by nonbarye on Monday 30th of July 2001 09:19:48 AM
Old 07-30-2001
Bug Solution

in bc command, there is a variable called "scale", which is
number of digits right of decimal point.

#x1=5.7
#x2=6.7
#x=$(printf "%s\n" "scale = 10; `echo $x1`/`echo $x2`" |bc)

it works. : )
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

UNIX problem? Unix programm runs windows 2000 CPU over 100%

Okee problems...!! What is happening: Unix server with some programms, workstations are windows 2000, the workstations work good but when you start a programm on the Unix server the CPU of the workstations go to 100% usage resulting that the system gets very slow. The programm well its running so... (2 Replies)
Discussion started by: zerocool
2 Replies

2. UNIX for Dummies Questions & Answers

Unix History Question: Why are filenames/dirnames case sentsitive in Unix?

I tried looking for the answer online and came up with only a few semi-answers as to why file and directory names are case sensitive in Unix. Right off the bat, I'll say this doesn't bother me. But I run into tons of Windows and OpenVMS admins in my day job who go batty when they have to deal... (3 Replies)
Discussion started by: deckard
3 Replies

3. UNIX for Advanced & Expert Users

missing Path(in UNIX) when i launch a job on to unix machine using windows SSh

hi i want run an unix application from a windows program/application.i am using SSH(command line version)to log on to a unix machine from windows. the application has to read a configuration file inorder to run. the configuration file .CFG is in bin in my home directory. but the application... (1 Reply)
Discussion started by: megastar
1 Replies

4. Shell Programming and Scripting

SORT Cammand

Hi every body, What is the limitation of UNIX command sort that related to file size? In other words, what is the maximum file size that sort command can process? (4 Replies)
Discussion started by: aldowsary
4 Replies

5. Shell Programming and Scripting

FTP script for sending a file from one unix directory to another unix server director

Hi, My local server is :/usr/abcd/ Remote server is :/Usr/host/test/ I want to send files from local unix directory(All files starting with O_999) to remote host unix directory. Can any body give me the Unix Shell script to do this. One more doubt: Shall we need to change the file... (1 Reply)
Discussion started by: raja_1234
1 Replies

6. Shell Programming and Scripting

Batch job in unix server to move the pdf file from unix to windows.

Hi Experts, I have a requirement where i need to setup a batch job which runs everymonth and move the pdf files from unix server to windows servers. Could some body provide the inputs for this. and also please provide the inputs on how to map the network dirve in the unix like that... (1 Reply)
Discussion started by: ger199901
1 Replies

7. Shell Programming and Scripting

Passing wildcards to cammand line arguments

I have a csh script plot-model.csh I want to be able to pass wildcards for the input file names such as ./plot-model.csh *8x6smp.cmod Currently I have to pass the full files names one after each other which I then store in a list. Then I proceed to plot the data within it. Now I... (7 Replies)
Discussion started by: kristinu
7 Replies

8. UNIX for Dummies Questions & Answers

How does unix system administration, unix programming, unix network programming differ?

How does unix system administration, unix programming, unix network programming differ? Please help. (0 Replies)
Discussion started by: thulasidharan2k
0 Replies

9. Shell Programming and Scripting

File Transfer from Window server to UNIX and UNIX to UNIX

Dear All, Can someone help to command or program to transfer the file from windows to Unix server and from one unix server to another Unix server in secure way. I would request no samba client. (4 Replies)
Discussion started by: yadavricky
4 Replies
ttk::scale(3tk) 						 Tk Themed Widget						   ttk::scale(3tk)

__________________________________________________________________________________________________________________________________________________

NAME
ttk::scale - Create and manipulate a scale widget SYNOPSIS
ttk::scale pathName ?options...? _________________________________________________________________ DESCRIPTION
A ttk::scale widget is typically used to control the numeric value of a linked variable that varies uniformly over some range. A scale dis- plays a slider that can be moved along over a trough, with the relative position of the slider over the trough indicating the value of the variable. STANDARD OPTIONS
-class -cursor -style -takefocus See the ttk_widget manual entry for details on the standard options. WIDGET-SPECIFIC OPTIONS Command-Line Name:-command Database Name: command Database Class: Command Specifies the prefix of a Tcl command to invoke whenever the scale's value is changed via a widget command. The actual command con- sists of this option followed by a space and a real number indicating the new value of the scale. Command-Line Name:-from Database Name: from Database Class: From A real value corresponding to the left or top end of the scale. Command-Line Name:-length Database Name: length Database Class: Length Specifies the desired long dimension of the scale in screen units (i.e. any of the forms acceptable to Tk_GetPixels). For vertical scales this is the scale's height; for horizontal scales it is the scale's width. Command-Line Name:-orient Database Name: orient Database Class: Orient Specifies which orientation whether the widget should be laid out horizontally or vertically. Must be either horizontal or vertical or an abbreviation of one of these. Command-Line Name:-to Database Name: to Database Class: To Specifies a real value corresponding to the right or bottom end of the scale. This value may be either less than or greater than the from option. Command-Line Name:-value Database Name: value Database Class: Value Specifies the current floating-point value of the variable. Command-Line Name:-variable Database Name: variable Database Class: Variable Specifies the name of a global variable to link to the scale. Whenever the value of the variable changes, the scale will update to reflect this value. Whenever the scale is manipulated interactively, the variable will be modified to reflect the scale's new value. WIDGET COMMAND
pathName cget option Returns the current value of the specified option; see ttk::widget(3tk). pathName configure ?option? ?value option value ...? Modify or query widget options; see ttk::widget(3tk). pathName get ?x y? Get the current value of the -value option, or the value corresponding to the coordinates x,y if they are specified. X and y are pixel coordinates relative to the scale widget origin. pathName identify x y Returns the name of the element at position x, y. See ttk::widget(3tk). pathName instate statespec ?script? Test the widget state; see ttk::widget(3tk). pathName set value Set the value of the widget (i.e. the -value option) to value. The value will be clipped to the range given by the -from and -to options. Note that setting the linked variable (i.e. the variable named in the -variable option) does not cause such clipping. pathName state ?stateSpec? Modify or query the widget state; see ttk::widget(3tk). INTERNAL COMMANDS
pathName coords ?value? Get the coordinates corresponding to value, or the coordinates corresponding to the current value of the -value option if value is omitted. SEE ALSO
ttk::widget(3tk), scale(3tk) KEYWORDS
scale, slider, trough, widget Tk 8.5 ttk::scale(3tk)
All times are GMT -4. The time now is 10:34 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy