Run the start script from the terminal? Newbie Time!


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Run the start script from the terminal? Newbie Time!
# 1  
Old 03-04-2004
Run the start script from the terminal? Newbie Time!

Hi,
How do I "run a script"?
I'm trying to start up some software called ElectroServer 3, and was told I just needed to "run the start script from the terminal to get things going".

From the terminal, i use cd command to change to the software's directory, and I guess the script in question is either ElectroServer3.jar or StartElectroServer.sh

I've tried, with both filenames:
open filename
run filename

and even just
fileneame

none of which seem to work.. I think.
Can anyone help?
# 2  
Old 03-04-2004
1) you are correct in cding to the programs directory.

2) chmod 750 StartElectroServer.sh

3) ./StartElectroServer.sh

that will start it up for ya.

if you dont know much about java i would highly recommend the J2EE tutoral from java.sun.com they have it in PDF format also.

J2EETutorial.pdf is the exact name.

its a bit lengthy but it is packed full of very usefull information. i am currently reading it so i can try and head in the direction of running a j2ee app server.
# 3  
Old 03-04-2004
Great, thanks! Now to stop it!

Thanks so much for the prompt reply.

Just so I understand...

Is chmod 750 anything like chmod +a ?
(make file executable by me?)

And what does
./filename
do exactly?


Anyway, it worked, and now i seem to be in the Server program. Unfortunately though, I can't find any documentation on specific commands...
trying
./StopElectroServer.sh
or even
exit
or
quit

don't seem to do anything...

maybe I need to open another Terminal window to run that stop script?

You know there's an installer.exe for the Windows version of the Server... are we OS X users in this new territory where Unix, under the hood knowledge is assumed, even though we just found ourselves in Unix world?
Anyway, it looks like a cool, cool, word...
I wanna break into your.. cool world, break into your... coool world..
(it's a song)
# 4  
Old 03-04-2004
usually the start script is called w/ a "stop" paramater. you will have to read the README and other avaliable program documentation to learn more about how to use it.

since the current directory is not in your $PATH env variable you need to specilfy exsplicity the script or program you are trying to execute. THUS ./run_me.script.

the . means current working directory
the forward slash is a directory seperator.

./run_me.script
# 5  
Old 03-04-2004
cool

thanks again.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Run script in new terminal

Hi Guys, I have a script that runs certain simulations in batch mode. I need to schedule some simulations to run over night. For each simulation to complete it should be run in separate terminal. My script is as follows sh run_test.sh <arg1> <arg2> <arg3> ... I need to launch this... (5 Replies)
Discussion started by: aelhosiny
5 Replies

2. Red Hat

Script to run at start and shutdown

Hello, I have script that start and shutdown the application. where should i place my script so that it can execute at my OS shutdown ? Pls help me... (2 Replies)
Discussion started by: saurabh84g
2 Replies

3. Shell Programming and Scripting

Put Script on Start-up the sh Terminal

Hi all I want to put this script on start-up the sh Terminal to save history of output: if ; then logdir=$HOME/terminal-logs if ; then mkdir $logdir fi gzip -q $logdir/*.log logfile=$logdir/$(date +%F_%T).$$.log ... (12 Replies)
Discussion started by: Rahim_T
12 Replies

4. Shell Programming and Scripting

How to start a shell script in a terminal console from graphic environment?

Hello. Normally when you double click on the file name, the shell script start in background. If you want to see what is going on, you must open a terminal console and start the shell within the terminal. Is it possible to start directly a shell script in a terminal console from the file... (0 Replies)
Discussion started by: jcdole
0 Replies

5. Ubuntu

run multiple command at the same time in one window terminal using multiplexer

Hi, I would like to ask if someone knows or accomplished this task in the terminal multiplexer in a single window with multiple splitted pane: In the script run multiple command at the same time in diff splitted pane or simulatneously. As an example: I would like to run iptraf, iotop, htop,... (2 Replies)
Discussion started by: jao_madn
2 Replies

6. UNIX for Dummies Questions & Answers

Script to run a command in a new terminal

Hey, I am trying to write a script that will open all of my session windows, and then secure shell into the appropriate server in the new windows. Seems simple, but I cant get it to work! Please help! :confused: (1 Reply)
Discussion started by: sojo1024
1 Replies

7. Shell Programming and Scripting

Run bash script without terminal

How can I make a bash script that keeps on running after I have closed the terminal? Or a script that runs without having the terminal window open? (1 Reply)
Discussion started by: locoroco
1 Replies

8. Shell Programming and Scripting

how to start SCRIPT command at begin of TERMINAL?

Hello sir, I want to monitor my work on the terminal.I know we can use script command.But every time when I start the terminal, I have to type script to start it.I want to automate it. So where should I include this command so that it will start as soon as I start the terminal ???? (2 Replies)
Discussion started by: nsharath
2 Replies

9. IP Networking

start a new terminal from a script after opening VPN

Hi all, I am trying to write a script that launch the cisco vpn client from the command line and then connects to a remote host using ssh. When i connect to the cisco vpn using vpnclient client connect the last lines of output from that client is Encryption: 168-bit 3-DES Authentication:... (0 Replies)
Discussion started by: borderblaster
0 Replies

10. Linux

run script through terminal

for all friends i am using linux enterprise 4. i installed oracle 10g in user name oracle.at the end of install i got a pop up window saying that u should run the following scripts(root.sh,orainstRoot.sh) in terminal from root account(cui) without log out oracle account . how i can run these... (5 Replies)
Discussion started by: sadiquep
5 Replies
Login or Register to Ask a Question