08-14-2009
Normally cpuinfo is world readable. I'd just stick to analyzing those proc files. Looks like you got script problems though, if that is your output.
btw its /proc/meminfo
10 More Discussions You Might Find Interesting
1. Solaris
Hi
i have a requirement when i have to check the solaris 9 os resources utilised by the applications( Oracle, veritas cluster, veritas net backup )
what are the commands i should use or any utility to check the resources
Regards (7 Replies)
Discussion started by: maooah
7 Replies
2. Shell Programming and Scripting
Hello Everybody,
I'm facing a weird problem with the awk command.
I try to retrieve in a variable the value returned by a simple ls command.
ls /export/home/tmp |tail -1 return a good value (the name of the .
But When I try to execute the same command in a remote server using ssh as... (2 Replies)
Discussion started by: Jabarod
2 Replies
3. UNIX for Dummies Questions & Answers
Hi ,
I am trying to find some files on a remote machine using the find command.
>ssh -q atukuri@remotehostname find /home/atukuri/ -name abc.txt
/home/atukuri/abc.txt
The above command works fine and lists the file, but if I want to do a long listing of files (ls -l) its not working . ... (2 Replies)
Discussion started by: atukuri
2 Replies
4. UNIX Desktop Questions & Answers
Hi All,
I have the below code where Iam connecting from xzur111pap server to xzur0211pap server thru ssh to execute some commands.
ssh xzur0211pap
spaceleft=`df -k /home |tail -1 | awk '{print $5}'`
spaceleft=${spaceleft%\%}
if ]; then
echo "ALERT : HUFS(/home $spaceleft)"
exit 0... (3 Replies)
Discussion started by: gaddamja
3 Replies
5. UNIX for Dummies Questions & Answers
ssh -q <hostname> /opt/tcs/satish/tst.ksh
ssh -q <anotherserver> /opt/tcs/satish/tst.ksh
tst.ksh has "nohup <command> & "
when i execute below script , its throwing error as
nohup can not be found
ssh -q <anotherserver> /opt/tcs/satish/tst.ksh > log &
can someone let me... (5 Replies)
Discussion started by: only4satish
5 Replies
6. Shell Programming and Scripting
I am trying to connect to Windows server via Linux server through a script and run two commands " cd and ls " But its giving me error saying " could not start the program" followed by the command name i specify e g : "cd"
i am trying in this manner "
ssh username@servername "cd... (5 Replies)
Discussion started by: sunil seelam
5 Replies
7. Shell Programming and Scripting
Hi
The command below does not work as it require to take command in the breakers
But If I do so the variable values get lost
ssh testserver01 'dsmc q b "${ARCHIVE_DIR}*" -sub=yes -querysummary -inactive -fromd="${BACKUP_DATE}"'
Thank you. (3 Replies)
Discussion started by: zam
3 Replies
8. Shell Programming and Scripting
Hello,
i`m tryeing to execute loop on remote server and i have problems with syntax
my command is
ssh root@server "for i in /vz/private/*; do b=`ls -la $i/usr/bin/crontab | awk '{print $1}'`; echo $b; done"
with this command i`m tryeing to get all permissions of file /usr/bin/crontab... (1 Reply)
Discussion started by: bacarrdy
1 Replies
9. UNIX for Advanced & Expert Users
I have list for servers say server1, server2, server3.....server20
I want to test the ssh connectivity of each server, if any one of the server is down then ssh connectivity fails and the script results something like echo "serever is not reachable"
Now I m confused using which command shall I... (2 Replies)
Discussion started by: sam@sam
2 Replies
10. Shell Programming and Scripting
Hi Folks,
I'm currently trying to read several values into different variables.
Actually, what I'm doing works, but I get an error message.
My attempts are:
read strCPROC strIPROC strAPROC <<<$(ssh -n -T hscroot@$HMC "lshwres -r proc -m $strIDENT --level sys -F \"configurable_sys_proc_units... (11 Replies)
Discussion started by: NKaede
11 Replies
LEARN ABOUT CENTOS
tcl_createchannelhandler
Tcl_CreateChannelHandler(3) Tcl Library Procedures Tcl_CreateChannelHandler(3)
__________________________________________________________________________________________________________________________________________________
NAME
Tcl_CreateChannelHandler, Tcl_DeleteChannelHandler - call a procedure when a channel becomes readable or writable
SYNOPSIS
#include <tcl.h>
void
Tcl_CreateChannelHandler(channel, mask, proc, clientData)
void
Tcl_DeleteChannelHandler(channel, proc, clientData)
ARGUMENTS
Tcl_Channel channel (in) Tcl channel such as returned by Tcl_CreateChannel.
int mask (in) Conditions under which proc should be called: OR-ed combination of TCL_READABLE, TCL_WRITABLE and
TCL_EXCEPTION. Specify a zero value to temporarily disable an existing handler.
Tcl_FileProc *proc (in) Procedure to invoke whenever the channel indicated by channel meets the conditions specified by
mask.
ClientData clientData (in) Arbitrary one-word value to pass to proc.
_________________________________________________________________
DESCRIPTION
Tcl_CreateChannelHandler arranges for proc to be called in the future whenever input or output becomes possible on the channel identified
by channel, or whenever an exceptional condition exists for channel. The conditions of interest under which proc will be invoked are speci-
fied by the mask argument. See the manual entry for fileevent for a precise description of what it means for a channel to be readable or
writable. Proc must conform to the following prototype:
typedef void Tcl_ChannelProc(
ClientData clientData,
int mask);
The clientData argument is the same as the value passed to Tcl_CreateChannelHandler when the handler was created. Typically, clientData
points to a data structure containing application-specific information about the channel. Mask is an integer mask indicating which of the
requested conditions actually exists for the channel; it will contain a subset of the bits from the mask argument to Tcl_CreateChannelHan-
dler when the handler was created.
Each channel handler is identified by a unique combination of channel, proc and clientData. There may be many handlers for a given channel
as long as they do not have the same channel, proc, and clientData. If Tcl_CreateChannelHandler is invoked when there is already a handler
for channel, proc, and clientData, then no new handler is created; instead, the mask is changed for the existing handler.
Tcl_DeleteChannelHandler deletes a channel handler identified by channel, proc and clientData; if no such handler exists, the call has no
effect.
Channel handlers are invoked via the Tcl event mechanism, so they are only useful in applications that are event-driven. Note also that
the conditions specified in the mask argument to proc may no longer exist when proc is invoked: for example, if there are two handlers for
TCL_READABLE on the same channel, the first handler could consume all of the available input so that the channel is no longer readable when
the second handler is invoked. For this reason it may be useful to use nonblocking I/O on channels for which there are event handlers.
SEE ALSO
Notifier(3), Tcl_CreateChannel(3), Tcl_OpenFileChannel(3), vwait(n).
KEYWORDS
blocking, callback, channel, events, handler, nonblocking.
Tcl 7.5 Tcl_CreateChannelHandler(3)