mIRC close window when fails to connect - mirc

I'm often connecting to multiple servers using server -m it opens new window for every server and I was wondering if it was possible to automatically close the window when it fails to connect. Possibly using the event CONNECTFAIL. Any idea ?

A simple close command should do the trick
on *:connectfail: {
; -it: Inactive Status window (not connected nor connecting)
close -it
}
More info here: http://en.wikichip.org/wiki/mirc/commands/close

Related

How to open another window of VSCode for Same SSH Connection?

I want to have two different VSCode windows that are both SSH'd to the same server.
Lets say that I have one window of VSCode (window-A) that is SSH'd into server-1. I now want to open another window of VSCode (window-B) and SSH into the same server (server-1).
However, when I try and do this currently, VSCode will not let me connect to the same server(server-1) in the new window (window-B). When I try to SSH to server-1 in window-B, the original window of VSCode (window-A) keeps popping up.
Is there a way to get around this?

Trying to connect to server via SSH with VSCode

I've got my SSH keys in place, and can log into the server just fine from my terminal, but when trying to SSH via VSCode... I get the following errors over and over again:
ssh fork: retry: No child processes
I also noticed that when VSCode is connecting to my server... I can't connect via SSH in Terminal, and I have to manually halt the processes for VSCode on the server to be able to connect again.
Any ideas on this one?
The error is the result of the parent process waiting the child after a fork().
The error means that your running low on resources or you have created to many processes and the bash can no longer create any process.
Can you avoid automatically connection retries?

LoopBack Command Prompt is Disable After Running the Applications

I am mew to loopback . I am running the API in localhost . I created the model and I am able to access it to localhost . But the problem is I can not type anythings in command prompt windows after running the applications ..
Here is the screen shot of the command prompt .
When you start your server you can't type anything on that console.
If you want to use console you have to either stop your server or you have to use another console.
If you want to restart your server then you have to halt it using Ctrl + c command and after that npm start command.
If you want to use the same console for more commands, then open a new console and run your node server over there.
And if you want to clear your warning of "includeSubdomains" then follow these steps :
1)Go to server/middleware.json
2)search for "includeSubdomains" key and replace with "includeSubDomains".

How to remote open playframework app (prod)?

I've done my development of play framework,and I have dist it to be a binary version uploaded to the server.
So,my problem is everytime i open it on ssh , it will shutdown when i logout , how to make it running until i shut it down manually?
You can use screen. It will start a new session that will stay open even if you disconnect from the server. You can then, on the next ssh, reconnect with screen -r -D. There are a ton of useful features such as creating multiple "screens" with ctrl+a and then c (see e.g. screen intro on digitalocean for more) so you can continue working on the server while the app is running
add nohup to your launch command to ensure it is not terminated when you exit your shell.
nohup exec /path/to/my/app/bin/myapp -Dhttp.port=8080

Can I reopen a jupyter notebook running on my server?

I need to run some code that takes a lot of time, so I did the following:
use ssh to connect to my server, use screen to start jupypter notebook server without web browser.
use the following to redirect localhost:portOnMyMachine to port 8888 on my server:
myName#serverAddress -NL portOnMyMachine:localhost:8888 ubuntu#DNSofMyServer
Open my browser with localhost:portOnMyMachine
And I could edit notebooks on my browser. Every time I need to edit my notebook, I just need to repeat 2 and 3.
However, if I run some large program, I cannot see which line the kernel is working on when I log in again. There is no "" symbol after the line number anymore. I guess it is still running something, because it will put a '' after any new line I want to execute.
So I was wondering if anybody could tell me how to re-open a running notebook and have it in the status before I close it?