Search Results

Search: Posts Made By: Blogger11
Forum: Linux 06-13-2012
4,656
Posted By Blogger11
Convert .sh to .bat please
Can someone translate this code to .bat for me? I have no clue.

#!/bin/sh
WAS_HOME="/opt/websphere/appserver/profiles/AppSrv01"
WAS_APP_SERVER="server1"
WAS_PROFILE_NAME="AppSrv01"
echo...
6,786
Posted By Blogger11
Recycle Jboss server script
Hello, I need help writing a script to restart our Jboss server when it crashes. I am not very good with scripting but here is the basics.

1) I'm hoping to use KornShell
2) The command to stop...
1,880
Posted By Blogger11
Thanks perfect!
Thanks perfect!
1,880
Posted By Blogger11
Kornshell finding operating system
This should be really simple but I can't figure it out. :wall:

Whats the command to find the operating system version thats running.

I need to know if the node my script gets run on is HP-UX...
5,949
Posted By Blogger11
I think that was the part that needed to be...
I think that was the part that needed to be corrected but I got it working today. Thank you guys very much!!!!
5,949
Posted By Blogger11
I know for a fact its not that part of the...
I know for a fact its not that part of the script. It has something to do with the function is not correct. I did however try what you just said and it still didn't work.

The output i get from...
5,949
Posted By Blogger11
That's not working either... Here's just a...
That's not working either...
Here's just a portion of my code.

everything(){

while read line; do
temp=`perl -e '$_=shift; /^([^#]\w+) ?= ?(\w+)/; print "$1\t$2\n"' "$line"`
...
5,949
Posted By Blogger11
Kornshell gathering user input question
Alright I have a function that does a bunch of commands and then I ask the user for what type of node they are on. So determining which node they are on means they will run a different function....
1,681
Posted By Blogger11
Kornshell Using a variable in a command
So Here is my code

cd $cer_mgr
table='hostname'
environment='echo $environment'
cat mq_$table_$environment_startup.ksh

I'm trying to make the results of the command "hostname" into a...
1,705
Posted By Blogger11
I need to grab <value> from file.txt x <...
I need to grab <value> from file.txt
x < file.txt
so x=<value>

Then i need to use that variable in a command

sqlplus v500/v500@<x>

How do I do that?
Whats the syntax
1,705
Posted By Blogger11
Kornshell grabbing value from file
I have a script right now that I run a command which outputs just one word to a file. Well I need to grab that value and use it in another line of code so...

touch oraclesid.txt
echo $ORACLE_SID...
Showing results 1 to 11 of 11

 
All times are GMT -4. The time now is 09:30 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy