10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
How to run several bash commands put in bash command line without needing and requiring a script file.
Because I'm actually a windows guy and new here so for illustration is sort of :
$ bash "echo ${PATH} & echo have a nice day!"
will do output, for example:... (4 Replies)
Discussion started by: abdulbadii
4 Replies
2. AIX
My first post evidently did not materialize so I posted it again:
Runnning a cron job every 5 mins to send data files to a state facility.
My original cron entry at worked fine:
01,06,11,16,21,26,31,36,41,46,51,56 * * * * /home/sftpuser/stateinoc-from-appname.ksh
Somewhere I have a... (1 Reply)
Discussion started by: Skyybugg
1 Replies
3. Shell Programming and Scripting
Using ksh on AIX what I am trying to do is to read the ls -l output from a file in a do while loop line by line. Extract the user name(3rd field) and the directory/file name(9th field) using awk and save them into variables. su -c to the user and change directory/file permisions to 777. Script I... (13 Replies)
Discussion started by: zubairom
13 Replies
4. Shell Programming and Scripting
my requirement is,
consider a file output
cat output
blah sdjfhjkd jsdfhjksdh
sdfs 23423 sdfsdf sdf"sdfsdf"sdfsdf"""""dsf
hellow there
this doesnt look good
et cetc etc
etcetera
i want to replace a line of line number 4 ("this doesnt look good") with some other line
... (3 Replies)
Discussion started by: vivek d r
3 Replies
5. Shell Programming and Scripting
Hi,
I am using solaris 10 and bash shell.Script execution follows below.Initially it will check whether a directory exists or not if does not exist it will create it.(This I have completed)
Second step:I have four users say user1,user2,user3,user4.Script should prompt for the user id and... (11 Replies)
Discussion started by: muraliinfy04
11 Replies
6. Shell Programming and Scripting
basically i'm tired of hitting the left arrow a few dozen times when correcting a mistake or modifying a history command
i'd like to use vim style key shortcuts while on the command line so that a 55 moves the cursor 55 places to the left...
and i want all the other vi goodies, search of... (3 Replies)
Discussion started by: marqul
3 Replies
7. UNIX for Dummies Questions & Answers
I tried opening the windows command line and typing UNIX commands, but they don't work. It kept saying that it was not recognized as an internal or external command, operable program or batch file.
Removed strange sentence with even stranger link
I need to use UNIX commands such as 'less',... (9 Replies)
Discussion started by: vlay2
9 Replies
8. UNIX and Linux Applications
In mysql, I can get what I want from a database without having to log into mysql. works great for me and it is perfect.
now, i want to be able to do the same in oracle but I dont know how to.
For example, if i want to retrieve information from the mysql database from the command line, i issue... (4 Replies)
Discussion started by: SkySmart
4 Replies
9. UNIX for Advanced & Expert Users
wuts the command that allows u to use 2 commands on one line? (2 Replies)
Discussion started by: el_soldado
2 Replies
10. UNIX for Dummies Questions & Answers
Hi folks.
I'm just starting to teach myself shell scripting and am having some trouble with an if statement. I am working with a directory where only one file will reside at a time and need to evaluate if this file is compressed to determine subsequent steps. I'm using echo for testing purposes.... (2 Replies)
Discussion started by: kristy
2 Replies
ipentry(n) An IP address entry widget ipentry(n)
__________________________________________________________________________________________________________________________________________________
NAME
ipentry - An IP address entry widget
SYNOPSIS
package require Tcl 8.4
package require Tk 8.4
package require ipentry ?0.3?
::ipentry::ipentry pathName ?option value...?
::ipentry::ipentry6 pathName ?option value...?
pathName complete
pathName get
pathName insert iplist
pathName icursor index
pathName configure option value...
pathName cget option
_________________________________________________________________
DESCRIPTION
This package provides a widget for the entering of a IP address.
::ipentry::ipentry pathName ?option value...?
Creates a new IPv4 ipentry widget and configures it with the given options and their values.
::ipentry::ipentry6 pathName ?option value...?
Creates a new ipentry widget for the entry of an IPv6 address. All options are the same as the IPv4 widget.
Each widget created with the command above supports the following methods:
pathName complete
Returns a boolean value. True indicates that the entry contains a complete IP address, meaning all fields have a value. In some
cases IPv6 address are valid when fields are missing. You will need to do your own validation to detect this.
pathName get
Returns the contents of the entry as a list consisting of 4 or 8 elements.
pathName insert iplist
IPv4 Takes a list of 4 elements and inserts one into each quad of the entry, in order. All values in the list must be empty or
integers. Values outside the range 0 to 255 are modified to be within the range. IPv6 Takes a list of 8 elements and inserts one
into each quad of the entry, in order. All values in the list must be empty or 1 to 4 hex digits.
pathName icursor index
Sets the position of the widgets insertion cursor. Only integer values between 0 and 15 are valid for ipentry and 0 to 31 for ipen-
try6. Setting the icursor will only have an effect if the widget already has the input focus.
pathName configure option value...
Modifies the configuration of the widget. For options and their meaning see the widget options section.
pathName cget option
Returns information about the current configuration of the widget, for the specified option. For options and their meaning see the
widget options section.
WIDGET OPTIONS
Command-Line Switch: -textvariable
Database Name: textvariable
Database Class: Variable
The name of a variable which holds the value of the IP address. The value must be a string of the form NNN.NNN.NNN.NNN for IPv4 or
HHHH:HHHH:HHHH:HHHH:HHHH:HHHH:HHHH:HHHH for IPv6 where H is a hex digit. The variable will be modified to represent a valid IP
address if it is not already.
Command-Line Switch: -state
Database Name: state
Database Class: State
Specifies one of three states for the entry: normal, disabled, or readonly.
Command-Line Switch: -font
Database Name: font
Database Class: Font
Command-Line Switch: -bd
Database Name: borderWidth
Database Class: BorderWidth
Command-Line Switch: -fg
Database Name: foreground
Database Class: Foreground
Command-Line Switch: -bg
Database Name: background
Database Class: Background
Command-Line Switch: -relief
Database Name: relief
Database Class: Relief
Command-Line Switch: -highlightthickness
Database Name: highlightThickness
Database Class: HighlightThickness
Command-Line Switch: -highlightcolor
Database Name: highlightColor
Database Class: HighlightColor
Command-Line Switch: -highlightbackground
Database Name: highlightBackground
Database Class: HighlightBackground
Command-Line Switch: -selectbackground
Database Name: selectBackground
Database Class: Background
Command-Line Switch: -selectforeground
Database Name: selectForeground
Database Class: Foreground
Command-Line Switch: -selectborderwidth
Database Name: selectBorderWidth
Database Class: BorderWidth
Command-Line Switch: -disabledbackground
Database Name: disabledBackground
Database Class: DisabledBackground
Command-Line Switch: -disabledforeground
Database Name: disabledForeground
Database Class: DisabledForeground
Command-Line Switch: -readonlybackground
Database Name: readonlyBackground
Database Class: ReadonlyBackground
Command-Line Switch: -insertbackground
Database Name: insertBackground
Database Class: Background
Standard widget options. See options for a description of their meanings and values.
KEYWORDS
entry, ip address
ipentry 0.3 ipentry(n)