Sponsored Content
Top Forums Shell Programming and Scripting Remote simulation and 'at' command Post 302379816 by PiPrus on Saturday 12th of December 2009 03:53:00 PM
Old 12-12-2009
Quote:
Originally Posted by pludi
How do you know it terminates?
Hmmm I just run two terminals, and then I'm logging 2 times in each window. One window is used for remote commands and the other one for htop.

I can see every action I made in the first terminal by observing the htop in the second window. I see when the cpu load bars are rising due to mpirun action, and when they decreasing suddenly after closing 'remote commands' terminal.

---------- Post updated at 03:53 PM ---------- Previous update was at 12:17 PM ----------

Ok, I found the solution. It's screen command.

One can simply do as me. Type:
1) screen
2) here you can put any of your commands that suppose to stay in a background. I put here my:
mpirun -np 8 compressibleInterFoam -parallel > log.txt &
3) press ctrl + a + d // and you are free Smilie you can close the terminal if you want or just logout

In order to get back to the screen, type:
1) screen -list // as a result you will get all of the screens and numbers of processes
2) screen -r <number> // reattach you to the screen denoted by number of the certain process.

Thanks for advice
 

10 More Discussions You Might Find Interesting

1. Windows & DOS: Issues & Discussions

unix simulation

hello everybody.. im new to this forum.. i have sme basic knowledge about unix.. but not too much.. i would like to practice shell programs n perl using a unix simulator.. but then i don't know wht a unix simulator means? just a bald definition that it creates a unix working environment in windows... (5 Replies)
Discussion started by: esash
5 Replies

2. Shell Programming and Scripting

simulation of wc command giving problems

Hello, i am developing a simple shell script for simulation of wc command but it's not working.Please tell me what is the problem. I have commented the problematic line if then echo "<Improper Usage>" echo "wcassg <options> file" else eval file=\$$# if then chars=0 words=0... (2 Replies)
Discussion started by: salman4u
2 Replies

3. Solaris

Results Load Simulation

If i simulate a load on a solaris system to choke the system to 90% CPU usage .. what is likely to increase .. my systems fan rpms, cpu temperature, power drawn .. Can anybody tell me (4 Replies)
Discussion started by: fugitive
4 Replies

4. Programming

Simulation using C/C++ and Java

Hi, I'm just start to learning simulate a network protocol using C/C++ and Java from scratch. Actually, I want to make two nodes can communicate using TCP and UDP protocol, for example http connection and video streaming, respectively. Can anyone help me find several references or guidance... (0 Replies)
Discussion started by: nica
0 Replies

5. UNIX and Linux Applications

2D collision simulation-programming

Hello, everybody, I'm thankful for the great helps you gave during the past year. Now I'm facing a serious problem: I was obliged to write a 2D collision simulation applet, and my experience is only in C,C++,Intelx86 assembly. I have no experience in Java and the like, and I don't know... (2 Replies)
Discussion started by: JackCrital2005
2 Replies

6. UNIX for Dummies Questions & Answers

Simulation of an ATM interface

Hi guys, I recently discovered this problem and any help would be great. 1) Create a file in vi named Accounts_File with the following data: The user, the name, the pin number, current balance and transaction history. There are 3 users who need to be inputted with all their PIN, etc... (1 Reply)
Discussion started by: Jimmy_c
1 Replies

7. Shell Programming and Scripting

Simulation of ATM interface

Hi guys, I recently discovered this problem and any help would be great. 1) Create a file in vi named Accounts_File with the following data: The user, the name, the pin number, current balance and transaction history. There are 3 users who need to be inputted with all their PIN, etc... (1 Reply)
Discussion started by: Jimmy_c
1 Replies

8. Shell Programming and Scripting

Until string from remote command equals value run remote command

I solved my issue by using the following code #!/bin/bash function GET_STATUS { #values Active Passive Failed ssh -a localhost '/home/user/fakecommand.sh' } STATE="unknown" until ] do echo $STATE sleep 5 STATUS=`GET_STATUS` echo $STATUS | grep Active &&... (1 Reply)
Discussion started by: $scipt_Kid
1 Replies

9. Shell Programming and Scripting

Check/get the exit status of a remote command executed on remote host through script

Geeks, Could you please help me out in my script and identify the missing piece. I need to check/get the exit status of a remote command executed on remote host through script and send out an email when process/processes is/are not running on any/all server(s). Here's the complete... (5 Replies)
Discussion started by: lovesaikrishna
5 Replies

10. Shell Programming and Scripting

Execute ssh command with additional terminal command to any remote user not working script

Hello i am having an issue with bash script and this is the code now=$(cat hosts1.txt | awk '{print $2;}') while read n ;do ssh root@$now 'useradd test1; echo -e "test1\ntest1" | passwd test1 && echo "test1 ALL=(ALL:ALL) ALL" >> /etc/sudoers' When i execute only part with cat, it... (8 Replies)
Discussion started by: tomislav91
8 Replies
MULTINODE_SERVER(1)						       MORSE						       MULTINODE_SERVER(1)

NAME
multinode_server - Server program to synchronise several instances of MORSE SYNOPSIS
multinode_server [synchronisation delay] DESCRIPTION
Socket server program to synchronise several instances of MORSE (nodes) running the same simulation scenario. This program must be started before launching the simulation in the nodes. All the client nodes will connect with the server and send it the updated positions of the robots they manage. The multinode_server program will concentrate the positions of all robots into a single Python dictionary, and then send it back to all clients. It also permits pausing the simulation, by typing in its terminal p and Enter. The same command will allow the simulation to continue. This mechanism relies on the fact that the clients will remain waiting for a reply from the server before continuing with the simulation. PARAMETERS
[synchronisation delay] Optional parameter that defines the delay (in seconds) between messages to the connected clients. A larger delay will slow down the simulation in all clients. Default value is 0.0 SEE ALSO
morse(1) morseexec(1) COPYRIGHT
2009-2010, LAAS-CNRS/ONERA ; 2010-2012, LAAS-CNRS 0.5.2 May 14, 2012 MULTINODE_SERVER(1)
All times are GMT -4. The time now is 03:07 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy