Sponsored Content
Full Discussion: handle core
Top Forums Programming handle core Post 13763 by vlad on Wednesday 23rd of January 2002 10:27:18 AM
Old 01-23-2002
Question handle core

Hi

I am looking for analog of the Windows "try-except" C code statement that enables target applications to gain control when events that normally terminate program execution occur.
 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

How to handle my own mail

I installed sendmail and pine and I could send emails to other people succesffly. However no matter what I try I cannot receive other people's email. The only messages sitting in my pine inbox are system notifications sent to root@knoppix. Then I think the problem is that my mail is handled by... (3 Replies)
Discussion started by: onthetopo
3 Replies

2. Shell Programming and Scripting

handle decimals

Hi All, How we can handle decimals in (Float) in UNIX. a=73 b=5 c=`expr a / b` i am getting 14 but i need full 14.6 . Can any one help me pls? (1 Reply)
Discussion started by: subin_bala
1 Replies

3. UNIX for Dummies Questions & Answers

difference between Dual-core & Core-to-duo

Can anybody tell What is the exact difference between a Dual-core processor and a Core-to-duo processor ?Advance thanks to all my friends. (1 Reply)
Discussion started by: Ajith kumar.G
1 Replies

4. Programming

how to know the application run on which core, and run how many times on this core

I have a dual core pc, I write a application with two child process. I know I can add sched_get_cpu to know the process run on which core, but, it just when the sched_get_cpu is called, it will tell me the result, my quesion is how to know the child proceess spend how many times on one core. (2 Replies)
Discussion started by: yanglei_fage
2 Replies

5. Linux

page fault handle

For zero-copy communication among the processor, I allocated a pool in the kernel. From user space, it may mmap the virtual memory device into user space i.e 0x80000000. the client may send a message to the server, it may request a buffer, kernel will allocate a block for it and register it into... (0 Replies)
Discussion started by: a2156z
0 Replies

6. Shell Programming and Scripting

How to handle one value below the other

Hi, I, have an output with 3 different values each below the other like: # echo $bla 123 345 234 Each value is in one line and for the further processing I need every single value. For example is there a way to grep line 2, like: # echo $bla | grep --line 2 345 :) Thank you in... (6 Replies)
Discussion started by: 2retti
6 Replies

7. UNIX for Dummies Questions & Answers

Difference between handle to the thread HANDLE and thread identifier pthread_t

This question might be silly but its confusing me a bit: What is the difference between handle to the thread HANDLE and thread identifier pthread_t? ---------- Post updated at 01:52 PM ---------- Previous update was at 01:48 PM ---------- Sorry I saw details and HANDLE is in windows and... (0 Replies)
Discussion started by: rupeshkp728
0 Replies

8. Shell Programming and Scripting

Handle error

I have a script as below , the script can tar file to the tape , however , it is fail to handle the error , if there is error like the backup file is in writing , then it will echo this is fail ( but the file has successful backup actually , so the backup task is succes , but it still report it is... (6 Replies)
Discussion started by: ust
6 Replies

9. Shell Programming and Scripting

Need exception handle for this script

Hi This is script to move log files from one location to other which is working fine. I need to add exception handling in this new to scripting. Please help #!/bin/ksh DB=QACCABOP dumppath='/udb/udbpa032/dump_data/offshore/Tran_logs' msg='/udb/udbpa032/utilities/DBAscripts/msg/msg.out'... (4 Replies)
Discussion started by: Mathew_paul
4 Replies
send(n) 						       Tk Built-In Commands							   send(n)

__________________________________________________________________________________________________________________________________________________

NAME
send - Execute a command in a different application SYNOPSIS
send ?options? app cmd ?arg arg ...? _________________________________________________________________ DESCRIPTION
This command arranges for cmd (and args) to be executed in the application named by app. It returns the result or error from that command execution. App may be the name of any application whose main window is on the display containing the sender's main window; it need not be within the same process. If no arg arguments are present, then the command to be executed is contained entirely within the cmd argument. If one or more args are present, they are concatenated to form the command to be executed, just as for the eval command. If the initial arguments of the command begin with "-" they are treated as options. The following options are currently defined: -async Requests asynchronous invocation. In this case the send command will complete immediately without waiting for cmd to complete in the target application; no result will be available and errors in the sent command will be ignored. If the target application is in the same process as the sending application then the -async option is ignored. -displayof pathName Specifies that the target application's main window is on the display of the window given by pathName, instead of the display con- taining the application's main window. -- Serves no purpose except to terminate the list of options. This option is needed only if app could contain a leading "-" character. APPLICATION NAMES
The name of an application is set initially from the name of the program or script that created the application. You can query and change the name of an application with the tk appname command. DISABLING SENDS
If the send command is removed from an application (e.g. with the command rename send {}) then the application will not respond to incom- ing send requests anymore, nor will it be able to issue outgoing requests. Communication can be reenabled by invoking the tk appname com- mand. SECURITY
The send command is potentially a serious security loophole. On Unix, any application that can connect to your X server can send scripts to your applications. These incoming scripts can use Tcl to read and write your files and invoke subprocesses under your name. Host-based access control such as that provided by xhost is particularly insecure, since it allows anyone with an account on particular hosts to con- nect to your server, and if disabled it allows anyone anywhere to connect to your server. In order to provide at least a small amount of security, Tk checks the access control being used by the server and rejects incoming sends unless (a) xhost-style access control is enabled (i.e. only certain hosts can establish connections) and (b) the list of enabled hosts is empty. This means that applications cannot con- nect to your server unless they use some other form of authorization such as that provide by xauth. Under Windows, send is currently dis- abled. Most of the functionality is provided by the dde command instead. EXAMPLE
This script fragment can be used to make an application that only runs once on a particular display. if {[tk appname FoobarApp] ne "FoobarApp"} { send -async FoobarApp RemoteStart $argv exit } # The command that will be called remotely, which raises # the application main window and opens the requested files proc RemoteStart args { raise . foreach filename $args { OpenFile $filename } } KEYWORDS
application, dde, name, remote execution, security, send Tk 4.0 send(n)
All times are GMT -4. The time now is 06:34 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy