Sponsored Content
Top Forums Shell Programming and Scripting Keep connection alive between PC and board Post 302915331 by gull04 on Tuesday 2nd of September 2014 10:34:10 AM
Old 09-02-2014
OK,

Then both the following options would be open to you, you should choose the one that suits your requirements.

For the tcp keep alive,

This normally will keep the session alive when there is no interaction i.e. no keystrokes in e terminal session or screen traffic. It is normally set as seconds - so it seems to be currently set to 75 seconds. You should check the acceptable parametesr and adjust to suit your requirements, within the parameters if you can.

Nohup is something different;

It is normally used to run something from a terminal session, but gives the flexibility to disconnect the session without the process dying as well - however if there is output required from the script it should go to some kind of log file.

Normally used as follows - but without the quotes.

Code:
user $> nohup "my/script/is/here > "my/logfile/is/here" 2>&1

Although you may wish to handle logging and error loging in the script.

Regards

Dave
This User Gave Thanks to gull04 For This Post:
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

help to ping a host, is it alive or not ...

hello to everyone, i was wondering if you could help me with a script im working on, it's kind of simple but i dont have a lot experience on unix comands: well, here it is: you might apreciate the infinite while loop :D, it is supossed to be running on the server all day scaning it every 5... (12 Replies)
Discussion started by: sx3v1l_1n51de
12 Replies

2. UNIX for Dummies Questions & Answers

Check whether a process is alive or not

Hi Everybody I have small requirement that needs to be implemented in shell script. Currently i have shell script which invokes a java process say "Process A" which runs in background. If some one tries to invoke again the same shell script , then there should be some mechanism inside the... (23 Replies)
Discussion started by: appleforme1415
23 Replies

3. UNIX for Dummies Questions & Answers

Socket still alive!!

Hi, I'm investigate about a problem regarding a connection between two server (S1 and S2). A client software on S1 made a pool of connections on S2; for some reason some connections end but sockets still alive on S2 and not on S1. I always knew about sockets as a pair of processes; is it... (1 Reply)
Discussion started by: grado
1 Replies

4. Shell Programming and Scripting

Can we keep our script alive while logging out.

Hi I want to keep my script running even when i am logged off from the box. can we run the script in background which can automatically run every hour? Please advise. Thank you (1 Reply)
Discussion started by: Prateek007
1 Replies

5. Solaris

Solaris 10 ftp connection problem (connection refused, connection timed out)

Hi everyone, I am hoping anyone of you could help me in this weird problem we have in 1 of our Solaris 10 servers. Lately, we have been having some ftp problems in this server. Though it can ping any server within the network, it seems that it can only ftp to a select few. For most servers, the... (4 Replies)
Discussion started by: labdakos
4 Replies

6. UNIX for Dummies Questions & Answers

How to find the server ip is alive ?

How to write a shell script to find ports are open for the server. Thanks in advance. regards krackjack (4 Replies)
Discussion started by: krackjack
4 Replies

7. Solaris

keeping a process alive ?

Hello guys, I have one script running that I need to keep it running 24x7 so I'd like to know how can I implement a sort of monitoring process I mean if for some reason this process dies somehow it gets automatically started again. Thanks. (8 Replies)
Discussion started by: cerioni
8 Replies

8. What is on Your Mind?

Is this forum alive?

Odd thing. I posted in the Solaris forum, new user, just asking for a bit of advice. Nothing too complicated. As of this post there have been 140 views and zero replies. So that got me thinking, is this normal? I had a look around, and I see the same thing on many other threads, and in other... (2 Replies)
Discussion started by: _JonB_
2 Replies

9. Programming

Socket Keep-Alive

Hi I'm adding http 1.1 GET to my project and trying to use “Keep-Alive” HTTP connections to the host, The problem is when I recv() the first page, it succeeds. However, the 2nd consecutive recv() will receive zero bytes, for which I really have no idea. As per HTTP 1.1 I have Connection: ... (6 Replies)
Discussion started by: Projecteer
6 Replies
PMPOST(1)						      General Commands Manual							 PMPOST(1)

NAME
pmpost - append messages to the Performance Co-Pilot notice board SYNOPSIS
$PCP_BINADM_DIR/pmpost message DESCRIPTION
pmpost will append the text message to the end of the Performance Co-Pilot (PCP) notice board file ($PCP_LOG_DIR/NOTICES) in an atomic man- ner that guards against corruption of the notice board file by concurrent invocations of pmpost. The PCP notice board is intended to be a persistent store and clearing house for important messages relating to the operation of the PCP and the notification of performance alerts from pmie(1) when other notification options are either unavailable or unsuitable. Before being written, messages are prefixed by the current time, and when the current day is different to the last time the notice board file was written, pmpost will prepend the message with the full date. If the notice board file does not exist, pmpost will create it. pmpost would usually run from long-running PCP daemons executing under the (typically unprivileged) $PCP_USER and $PCP_GROUP accounts. The file should be owned by root, and group writable by the $PCP_GROUP group. FILES
$PCP_LOG_DIR/NOTICES the PCP notice board file PCP ENVIRONMENT
The file /etc/pcp.conf contains the local values for PCP_ variables. UNIX SEE ALSO
logger(1). WINDOWS SEE ALSO
pcp-eventlog(1). SEE ALSO
pmie(1), pcp.conf(5) and pcp.env(5). Performance Co-Pilot PCP PMPOST(1)
All times are GMT -4. The time now is 12:48 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy