Skip to content
Advertisement

Tag: bash

How to restart application in tomcat server

I have been looking for some solution to restart app inside tomcat server on remote linux machine but i haven’t found anything yet. Can anyone please tell me how can i restart the application in Tomcat Server after some time interval without restarting the tomcat server on remote machine? Can anyone help me out with the Bash Script and CRON

Doesn’t sh support process substitution <(…)?

On a Centos 6 machine, this works: and this doesn’t: I get: Nevermind the grep and tail. The problem is with the process substitution thingy: <(…) Can someone tell me what sh does differently here? [EDIT] Thanks for the answers! The problem arose while using capistrano for deployments. It defaults to using sh but I changed that to bash now.

Connect to a VPN Connection in Ubuntu in bash

How can I connect to a VPN Connection when I can use only bash (terminal)? I create a connection but I want to connect or disconnect using remote ssh connection Answer you can use nmcli to do that. this program is use for network management. you need to save the password of that connection before you use this command. For

How to call variables from ip.txt file to .sh file?

I have list of ip addresses in one txt file which I have named ip.txt I want to call those ip in my .sh file, I am not sure how to proceed here.. here I did soemthing Please tell me how to do that? Answer This should make it: or using for as you do because the syntax is: for

Delete files older than X minutes

I would like to delete files that are older than 59 minutes. I have this so far: This doesn’t work and seems to delete all files. I’ve tested this several times and I think the issue is to do with daystart. I’ve read the man page and it seems to base time on the beginning of the day rather than

Multithreaded Programming with Bash Script

I am running a bash script as like that: Every time when I send a request I have to wait to finish it and write to a file and after that it continues to looping. However I want to do it asynchronously. I mean that it will send a request and loop without waiting response. However when a response comes

Advertisement