I am trying to run two shell scripts at once only in one script to kick it off on linux.
For example, below is what I do in my kick off script, which is called (startupdatedb.sh).
#!/bin/ksh
ssh userdb@app3 'cd /scripts/oss/ && ./updatedb.sh'
ssh userdb@app1 'cd /scripts/oss/ &&...
I am using SuSE Linux and have reached my array limit for semaphores. I did the ipcs -u to see what I am using and ipcs -l to show my limits. I tried the ipcs -s to see what all arrays are being used and it is showing this
------ Semaphore Arrays --------
key semid owner...
Can anybody explain to me what stack size acutally is and how can you ever guess what to set it to? When I do ulimit -a it shows unlimited for stack size, but I have some problems running a couple programs on my Linux box that shows a segmentation fault.
Need help to understand what the headings of the output of a ps -ef command is. Below is an example of the output of my ps -ef command
websubcu 11667 11657 0 10:56 ? 00:00:00 /scripts/test.sh
I understand what the websubcu, 11667, 11657 and /scripts/test.sh headings/fields are, but...
I am running on SuSE Linux and I am trying to find a way how I can find any process that is older than 1 day/24 hours and kill it via a script that I will put in cron to run once a day or so. These are WebSphere/Java processes the get hung from time to time due to programming issues or whatever...
This may be pretty easy, but I am having trouble with it. I have an IF statement that I want to do and I want it to check to see if 4 different files are nonzero byte files. below is my if statement.
if [ -s /nfslogs/weblogs/access_log.`date +"%m%d"` ] ; then
How can I have it look at 4...
I have a website say www.example.com. This is setup for port 80 and 443. The redirect/rewrite rule I use currently is for the port 80 virtual host for example.com in my httpd.conf file. When the user types www.example.com I want it to redirect to this URL below...
I'm trying to redirect when a user types in www.example.com to go to www.example.com/test?/test=1, but I still want to prevent when I type www.example.com/server-status from being redirected to the www.example.com/test?/test=1, but that is the only condition I have. I assume I can do that with...
I am trying to redirect one url to another and it keeps defaulting back to the original URL and not redirecting to the new one. Here is an example of my entry in the httpd.conf file. Any ideas on why the redirect isn't working for me or any other ideas to try? I am using IBM HTTP server...
I have /home/test directory. Off that directory I have about 20 subdirectories. I want to be able to list the total number of files in each of those directories. For example directory1 has 100 files, directory2 has 20 files, directory3 has 55 files, etc. Is there a command to do this?
I am using 2 linux servers, serverA and serverB for example. I am writing a script on serverA to run a couple of commands and then I want the script to automatically ssh over to the serverB to run a couple commands on serverB. How can I do that with a script to ssh over to the serverB and...
I am wondering how I would go about creating a script that would delete only 0 byte size files found in /home/user directory for example. Any help would be appreciated. Thanks!
I have a java classpath running inside of a unix shell script. During my testing it will error with java.io.FileNotFoundException error, which I know why that is, but when I set in my unix shell script this to see the right exit status of success/fail, it always shows a 0 for success when that...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.