I’ve started weblogic through putty:
./startWebLogic.sh
After that server started successfully.
But when I close the putty window, the server stops working
How can I keep weblogic running after I close the putty window?
Thanks!
You will want to use something like the following:
nohup ./startWebLogic.sh &
Nohup is a unix command, used to start another program, in such a way that it does not terminate when the parent process is terminated.
You can also output it to a file if you'd like:
nohup ./startWebLogic.sh > admin_server.out &
Simple Steps:
after the login through putty follow the below steps:
Go directory of server where "startWebLogic.sh" this command located.
typed command "screen" press enter (A new Screen will opened)
In the new screen type your run command "./startWebLogic.sh".
Press Ctrl+a then press d(without holding Ctrl) you will return back previous screen)
if like to go again your server log screen typed command "screen -r"
Akbar
Related
This is my first attempt with PyQT5 and pyinstaller. I am using a simple command to launch httpd.exe from a button click
The command I use is
os.system(cur_dir+"//htdocs//api//taskkill /f /im httpd.exe")
It starts apache web server minimized and works fine. Apache starts and there is no command prompt window opening. When I create the exe via pyinstaller, I get a command prompt window flash when I click on this button. Is there a way to prevent that command prompt window from opening? I am using pyinstaller --onefile --windowed
Use the --noconsole option to get rid of command prompt window.
pyinstaller --onefile --windowed --noconsole
I trying to run Selenium grid and node using Jenkins but the CMD windows always closes after executing the steps
i am running the below code in Jenkins Window Batch Command
cd "C:\TapsiumACSS\Grid3.9"
start Hub.bat
I need the CMD window to be opened
You can create a shortcut of the bat file and under properties in the target section you have to add &PAUSE
This will pause the command prompt until an user input is done.
Just a opinion, Not a good idea to use Jenkins and ask the user to do something as that defeats the whole automation aspect... Instead copy the selenium results into a html or text file which can be viewed later :)
P.S. you will have to refer to this bat file location in Jenkins i.e. the shortcut location
Hope it helps :)
Is there any way to save the PuTTY output to a file using the command line? I know this is easily done using the GUI but in my case it has to be done automatically.
What I'm working on:
User clicks batch file -> starts PuTTY, automatically connects to my device over SSH and runs a bunch of commands -> PuTTY should save the output to a file.
This can be done by changing registry settings.
Entry point for you is to check what and where is stored for putty:
run regedit and go to HKEY_CURRENT_USER\Software\SimonTatham\PuTTY
you can export settings to file by:
regedit /e "%userprofile%\desktop\putty-registry.reg" HKEY_CURRENT_USER\Software\Simontatham
From here,edit putty-registry.reg to your needs and import on user machine.
I'm new to apple script, but I'd like to open up Terminal, change the path to where the vagrant up command can be ran and then run a vagrant up. So far I have got to;
tell application "Terminal"
activate
do script "cd desktop/development/vagrant/"
end tell
If I try the following;
tell application "Terminal"
activate
do script "cd desktop/development/vagrant/"
do script "vagrant up"
end tell
This opens up a second terminal and tries to execute the vagrant up from the home location instead of running the command in the terminal window that navigates to desktop/development/vagrant/
My question is; is there a way to either run a follow up command in the original (first) Terminal window or a way to run the cd desktop/development/vagrant vagrant up as one singular command?
Thanks in advance
Found the answer;
tell application "Terminal"
set currentTab to do script ("cd desktop/development/vagrant/")
do script ("vagrant up") in currentTab
end tell
I use tmux 1.6-2 on a Debian 7.6 (wheezy).
I open a new session and start a long running script that gives updates in form of a progress bar and an activity indicator (spinning bar: /-\|/ ).
When I detach and reattach everything is still fine. But after some random time when I reattach the screen content is stuck. No spinning bar, no progress. I looked into the following:
I can see in top that the process is still running
I can successfully enter tmux commands (like new window, detach, etc.)
I can kill the script with Ctrl-C, but the tmux screen doesn't change
Ctrl-S and Ctrl-Q (like suggested in other threads) doesn't help
Any help is very much appreciated.
I managed to unfreeze my tmux session by running choose-client command from tmux's command line <prefix> :
where prefix is C-b by default
I found the solution in the bug report (by Taisuke Yamada).