Sponsored Content
Top Forums Programming how to run socket programme and file management concurrently Post 302086873 by matrixmadhan on Monday 28th of August 2006 08:32:05 AM
Old 08-28-2006
this solution is only at the cost of an extra process and an additional load to the cpu...

fork a process to monitor - or look into memory refresh.. (close all the unnnecessary descriptors ..they are not needed )
while the other process can have a block at accept function call..

blowtorch .. in newer semantics of signals - reregistration of signals are not needed if we are enabling RESTART flag in the sigaction specification itself...
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Executing multiple Oracle procedures concurrently

I am using KSH with an OS of AIX Version 5.3. From my shell script, that will be scheduled thorugh a CRON, I need to execute 2 Oracle stored procedures concurrently. If we execute them one at a time, the total execution time takes 4 hours or more. Since they are not dependent on each other and... (6 Replies)
Discussion started by: multidogzoomom
6 Replies

2. Programming

Run 4-processes concurrently

How can i run a back ground process.... I.e for example by using fork() i need to run seperate 4 background processes.. How can send a process to background ??? (9 Replies)
Discussion started by: ugp
9 Replies

3. Shell Programming and Scripting

Running same script multiple times concurrently...

Hi, I was hoping someone would be able to help me out. I've got a Python script that I need to run 60 times concurrently (with the number added as an argument each time) via nightly cron. I figured that this would work: 30 1 * * * for i in $(seq 0 59); do $i \&; done However, it seems to... (4 Replies)
Discussion started by: ckhowe
4 Replies

4. Shell Programming and Scripting

Trimming files concurrently

I have a file which is written by an ongoing process (actually it is a logfile). I want to trim this logfile with a script and save the trimmed portion to another file or display it to <stdout> (it gets picked up there by another process). Fortunately my logfile has a known format (XML) and i... (3 Replies)
Discussion started by: bakunin
3 Replies

5. Programming

cobol crn programme run on express cobol as .gnt

can i run .crn programme in express cobol which support to .gnt programme .... Plz tell me solution (2 Replies)
Discussion started by: bibi
2 Replies

6. Programming

How to Run a Linux Command and Redirect its output to a socket in C

I have a Linux socket server program. I need to run the commands sent by the client and return the output to client. Is there a quicker way? I tried with ptr=popen(command, "r"); and then fgets(buf, size,ptr); write buf to socket fgets hangs for me. Now, I would like to know if I can... (3 Replies)
Discussion started by: rajeshomallur
3 Replies

7. UNIX for Advanced & Expert Users

connect problem for sctp socket (ipv6 socket) - Runtime fail Invalid Arguments

Hi, I was porting ipv4 application to ipv6; i was done with TCP transports. Now i am facing problem with SCTp transport at runtime. To test SCTP transport I am using following server and client socket programs. Server program runs fine, but client program fails giving Invalid Arguments for... (0 Replies)
Discussion started by: chandrutiptur
0 Replies

8. UNIX for Dummies Questions & Answers

Help to run this socket program in C

i have created two files named server and client then when i run the server program it says the server is waiting(./server 5555) then when i run the client program it says "client error:connection refused" can u plz help me to run it?:( (7 Replies)
Discussion started by: kedah160
7 Replies

9. AIX

Restore and upgrade concurrently

I have serveral servers that are at AIX 6.1 tl4 sp1 and want to move them to new hardware and upgrade them at the same time. Using NIM and sysback images I want to backup the current server with sysback and restore it and upgrade it to AIX 6.1 tl4 sp6 to the new hardware using my NIM server. My... (4 Replies)
Discussion started by: daveisme
4 Replies

10. UNIX for Dummies Questions & Answers

How to run script concurrently

Hi all, I have one script. Its job is to get 1 file from dirA and 1 file from dirB as parameters for another python script. However, there are a lot of files in both dir A and B, so running this scripts really takes a lot of time. So I wonder if there are any ways that I can do this faster,... (6 Replies)
Discussion started by: yoyomano
6 Replies
KWALLETASKPASS(1)					    BSD General Commands Manual 					 KWALLETASKPASS(1)

NAME
kwalletaskpass -- kwallet-based pass-phrase dialog for use with OpenSSH SYNOPSIS
kwalletaskpass [options] label DESCRIPTION
kwalletaskpass is a kwallet- and pinentry-based pass-phrase dialog for use with OpenSSH. It is intended to be called from the ssh-add(1) programme and not invoked directly. If a passphrase is requested, kwalletaskpass works by first looking up the passphrase in the KWallet by means of kwalletcli(1); using it if found, then calling kwalletcli_getpin(1) to interactively retrieve an answer from the user via pinentry otherwise. If the user specifies a passphrase, kwalletcli_getpin(1) is run again to ask if the passphrase should be stored in the KWallet. Negative answers will be stored in the KWallet to avoid being asked each time. kwalletaskpass uses the KWallet folders kwalletaskpass and kwalletaskpass-blacklist with match- ing entry names. If anything other than a key passphrase is requested, it is merely relayed to kwalletcli_getpin(1). Some requests are known to require a boolean answer and are relayed using the boolean query flag; all others are relayed using a PIN query. ssh(1) accepts either the literal word ``yes'' (case-insensitively matched) or an empty answer (both only when using the OK button) as confirmation. There are currently no options. RETURN VALUES
kwalletaskpass exits 0 on success, 1 if the user cancelled the dialogue, or >1 if an error occured. ENVIRONMENT
DISPLAY The X11 display to use for child processes. If this is unset or empty, kwalletcli will not be called. PINENTRY The pinentry programme to use. The default is inherited from kwalletcli_getpin(1). SEE ALSO
kwalletcli(1), kwalletcli_getpin(1), ssh-add(1), ssh-askpass(1) AUTHORS
kwalletaskpass was written by Thorsten Glaser <tg@mirbsd.org> mostly for tarent GmbH. The idea came from an askpass.C file found somewhere on the 'net, with no author information. Since it was licenced less freely, this is a rewrite from scratch; modular and with more function- ality, too. BSD
April 9, 2011 BSD
All times are GMT -4. The time now is 07:22 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy