Sponsored Content
Full Discussion: qual command
Operating Systems Solaris qual command Post 302501843 by Rajesh_Apple on Saturday 5th of March 2011 04:52:15 AM
Old 03-05-2011
qual command

Hi guys,

any knows qual command of stop+a.Smilie
 

10 More Discussions You Might Find Interesting

1. SuSE

inconsistent ls command display at the command prompt & running as a cron job

Sir, I using the following commands in a file (part of a bigger script): #!/bin/bash cd /opt/oracle/bin ls -lt | tail -1 | awk '{print $6}' >> /tmp/ramb.out If I run this from the command prompt the result is: 2007-05-16 if I run it as a cron job then... (5 Replies)
Discussion started by: rajranibl
5 Replies

2. Shell Programming and Scripting

assign a command line argument and a unix command to awk variables

Hi , I have a piece of code ...wherein I need to assign the following ... 1) A command line argument to a variable e.g origCount=ARGV 2) A unix command to a variable e.g result=`wc -l testFile.txt` in my awk shell script When I do this : print "origCount" origCount --> I get the... (0 Replies)
Discussion started by: sweta_doshi
0 Replies

3. AIX

AIX:Command to get netaddress/subnet address command in IPv4/IP6

AIX:Command to get netaddress/subnet address command in IPv4/IP6 Can anybody help us with a command to retrieve netaddress/subnet address command in IPv4/IP6 on aix machine. net/subnet address is in the format 172.16.212.0(signifies all 255 machines in an IPv4 network) (2 Replies)
Discussion started by: rookie8278
2 Replies

4. Shell Programming and Scripting

Need help! command working ok when executed in command line, but fails when run inside a script!

Hi everyone, when executing this command in unix: echo "WM7 Fatal Alerts:", $(cat query1.txt) > a.csvIt works fine, but running this command in a shell script gives an error saying that there's a syntax error. here is content of my script: tdbsrvr$ vi hc.sh "hc.sh" 22 lines, 509... (4 Replies)
Discussion started by: 4dirk1
4 Replies

5. UNIX for Advanced & Expert Users

unix command : how to insert text at the cursor location via command line?

Hi, Well my title isn't very clear I think. So to understand my goal: I have a script "test1" #!/bin/bash xvkbd -text blabla with xbindkeys, I bind F5 key in order it runs my test1 script So when I press F5, test1 runs. I'm under Emacs/Vi and I press F5 in order to have "blabla" be... (0 Replies)
Discussion started by: xib.be
0 Replies

6. UNIX for Dummies Questions & Answers

passing command output from one command to the next command in cshell

HI Guys, I hope you are well. I am trying to write a script that gets executed every time i open a shell (cshell). I have two questions about that 1) I need to enter these commands $ echo $DISPLAY $ setenv $DISPLAY output_of_echo_$display_command How can i write a... (2 Replies)
Discussion started by: kaaliakahn
2 Replies

7. Shell Programming and Scripting

SH script, variable built command fails, but works at command line

I am working with a sh script on a solaris 9 zone (sol 10 host) that grabs information to build the configuration command line. the variables Build64, SSLopt, CONFIGopt, and CC are populated in the script. the script includes CC=`which gcc` CONFIGopt=' --prefix=/ --exec-prefix=/usr... (8 Replies)
Discussion started by: oly_r
8 Replies

8. Shell Programming and Scripting

Multiple command execution inside awk command during xml parsing

below is the output xml string from some other command and i will be parsing it using awk cat /tmp/alerts.xml <Alert id="10102" name="APP-DS-ds_ha-140018-componentFailure-S" alertDefinitionId="13982" resourceId="11427" ctime="1359453507621" fixed="false" reason="If Event/Log Level(ANY) and... (2 Replies)
Discussion started by: vivek d r
2 Replies

9. AIX

I'm facing problem with rpm command, when running the command and appears this error:

exec(): 0509-036 Cannot load program /usr/opt/freeware/bin/rpm because of the following errors: 0509-022 Cannot load module /opt/freeware/lib/libintl.a(libintl.so.1). 0509-150 Dependent module /opt/freeware/lib/libiconv.a(shr4.o) could not be loaded. 0509-152 Member... (4 Replies)
Discussion started by: Ohmkar
4 Replies

10. UNIX for Beginners Questions & Answers

Another one line command where I'd like to determine if Ubuntu or Red Hat when running command

Hello Forum, I'm making very good progress on my report thanks to the very helpful people on this forum. I've been able to successfully create my report for my Red Hat servers. But I do have a few ubuntu servers in the mix and I'd like to capture some data from them when an ssh connection is... (8 Replies)
Discussion started by: greavette
8 Replies
fileutil::magic::rt(3tcl)					  file utilities					 fileutil::magic::rt(3tcl)

__________________________________________________________________________________________________________________________________________________

NAME
fileutil::magic::rt - Runtime core for file type recognition engines written in pure Tcl SYNOPSIS
package require Tcl 8.4 package require fileutil::magic::rt ?1.0? ::fileutil::magic::rt::open filename ::fileutil::magic::rt::close ::fileutil::magic::rt::file_start name ::fileutil::magic::rt::result ?msg? ::fileutil::magic::rt::resultv ?msg? ::fileutil::magic::rt::emit msg ::fileutil::magic::rt::offset where ::fileutil::magic::rt::Nv type offset ?qual? ::fileutil::magic::rt::N type offset comp val ?qual? ::fileutil::magic::rt::Nvx atlevel type offset ?qual? ::fileutil::magic::rt::Nx atlevel type offset comp val ?qual? ::fileutil::magic::rt::S offset comp val ?qual? ::fileutil::magic::rt::Sx atlevel offset comp val ?qual? ::fileutil::magic::rt::L newlevel ::fileutil::magic::rt::I base type delta ::fileutil::magic::rt::R offset _________________________________________________________________ DESCRIPTION
This package provides the runtime core for file type recognition engines written in pure Tcl and is thus used by all other packages in this module, i.e. the two frontend packages fileutil::magic::mimetypes and fileutil::magic::filetypes, and the two engine compiler packages fileutil::magic::cgen and fileutil::magic::cfront. COMMANDS
::fileutil::magic::rt::open filename This command initializes the runtime and prepares the file filename for use by the system. This command has to be invoked first, before any other command of this package. The command returns the channel handle of the opened file as its result. ::fileutil::magic::rt::close This command closes the last file opened via ::fileutil::magic::rt::open and shuts the runtime down. This command has to be invoked last, after the file has been dealt with completely. Afterward another invokation of ::fileutil::magic::rt::open is required to process another file. This command returns the empty string as its result. ::fileutil::magic::rt::file_start name This command marks the start of a magic file when debugging. It returns the empty string as its result. ::fileutil::magic::rt::result ?msg? This command returns the current result and stops processing. If msg is specified its text is added to the result before it is returned. See ::fileutil::magic::rt::emit for the allowed special character sequences. ::fileutil::magic::rt::resultv ?msg? This command returns the current result. In contrast to ::fileutil::magic::rt::result processing continues. If msg is specified its text is added to the result before it is returned. See ::fileutil::magic::rt::emit for the allowed special character sequences. ::fileutil::magic::rt::emit msg This command adds the text msg to the result buffer. The message may contain the following special character sequences. They will be replaced with buffered values before the message is added to the result. The command returns the empty string as its result.  This sequence is removed %s Replaced with the last buffered string value. %ld Replaced with the last buffered numeric value. %d See above. ::fileutil::magic::rt::Nv type offset ?qual? This command fetches the numeric value with type from the absolute location offset and returns it as its result. The fetched value is further stored in the numeric buffer. If qual is specified it is considered to be a mask and applied to the fetched value before it is stored and returned. It has to have the form of a partial Tcl bit-wise expression, i.e. & number For example: Nv lelong 0 &0x8080ffff For the possible types see section NUMERIC TYPES. ::fileutil::magic::rt::N type offset comp val ?qual? This command behaves mostly like ::fileutil::magic::rt::Nv, except that it compares the fetched and masked value against val as specified with comp and returns the result of that comparison. The argument comp has to contain one of Tcl's comparison operators, and the comparison made will be <val> <comp> <fetched-and-masked-value> The special comparison operator x signals that no comparison should be done, or, in other words, that the fetched value will always match val. ::fileutil::magic::rt::Nvx atlevel type offset ?qual? This command behaves like ::fileutil::magic::rt::Nv, except that it additionally remembers the location in the file after the fetch in the calling context, for the level atlevel, for later use by ::fileutil::magic::rt::R. ::fileutil::magic::rt::Nx atlevel type offset comp val ?qual? This command behaves like ::fileutil::magic::rt::N, except that it additionally remembers the location in the file after the fetch in the calling context, for the level atlevel, for later use by ::fileutil::magic::rt::R. ::fileutil::magic::rt::S offset comp val ?qual? This command behaves like ::fileutil::magic::rt::N, except that it fetches and compares strings, not numeric data. The fetched value is also stored in the internal string buffer instead of the numeric buffer. ::fileutil::magic::rt::Sx atlevel offset comp val ?qual? This command behaves like ::fileutil::magic::rt::S, except that it additionally remembers the location in the file after the fetch in the calling context, for the level atlevel, for later use by ::fileutil::magic::rt::R. ::fileutil::magic::rt::L newlevel This command sets the current level in the calling context to newlevel. The command returns the empty string as its result. ::fileutil::magic::rt::I base type delta This command handles base locations specified indirectly through the contents of the inspected file. It returns the sum of delta and the value of numeric type fetched from the absolute location base. For the possible types see section NUMERIC TYPES. ::fileutil::magic::rt::R offset This command handles base locations specified relative to the end of the last field one level above. In other words, the command computes an absolute location in the file based on the relative offset and returns it as its result. The base the offset is added to is the last location remembered for the level in the calling context. NUMERIC TYPES
byte 8-bit integer short 16-bit integer, stored in native endianess beshort see above, stored in big endian leshort see above, stored in small/little endian long 32-bit integer, stored in native endianess belong see above, stored in big endian lelong see above, stored in small/little endian All of the types above exit in an unsigned form as well. The type names are the same, with the character "u" added as prefix. date 32-bit integer timestamp, stored in native endianess bedate see above, stored in big endian ledate see above, stored in small/little endian ldate 32-bit integer timestamp, stored in native endianess beldate see above, stored in big endian leldate see above, stored in small/little endian BUGS, IDEAS, FEEDBACK This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category fileutil :: magic 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. SEE ALSO
file(1), fileutil, magic(5) KEYWORDS
file recognition, file type, file utilities, mime, type CATEGORY
Programming tools fumagic 1.0 fileutil::magic::rt(3tcl)
All times are GMT -4. The time now is 09:47 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy