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


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting How to start a shell script in a terminal console from graphic environment?
# 1  
Old 04-15-2013
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 manager ( dolphin ) in graphical environment ( KDE4-10).
Or must I create a shell startup file with :
Code:
#!/bin/bash
#
xterm -e my_bash_shell

Any help is welcome
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to change Linux Terminal environment variable in a perl or bash script?

Hi, I meet an problem that it cannot change Terminal environment variable in a perl or bash script. This change can only exist and become effective in script lifetime. But I want to make this change take effect in current opened Terminal. In our view, the thought seems to be impossible, As... (9 Replies)
Discussion started by: weichanghe2000
9 Replies

2. 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

3. UNIX for Advanced & Expert Users

Console vs terminal

What is the difference between a console and terminal? When you hit ctrl+alt+f2 from the gui are you going into a console or terminal? (1 Reply)
Discussion started by: cokedude
1 Replies

4. Fedora

console vs terminal ???

Hello sir, I was using the FEDORA 10.I saw both Console and terminal here.Can u please brief me about the differences between these two.....:confused: (3 Replies)
Discussion started by: nsharath
3 Replies

5. 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

6. 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

7. UNIX for Dummies Questions & Answers

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... (4 Replies)
Discussion started by: waking_bear
4 Replies

8. UNIX for Dummies Questions & Answers

Terminal vs console

What's the difference between a terminal and a console in Sun 5.5 CDE? Gives the option to open a console or terminal window, was wondering what the diff is? (1 Reply)
Discussion started by: kymberm
1 Replies

9. UNIX for Dummies Questions & Answers

console terminal

if I am on "host13" and I rlogin to "host14" using root, is there any way to open up a console window on "host14" so that it will appear for that particular user sitting there at the time (1 Reply)
Discussion started by: AMisledDrummer
1 Replies

10. UNIX for Dummies Questions & Answers

suse graphic console

suse linux comes default installed with a graphic console....is there any way to switch this to a regular black-on-white text-mode console? any help would be appreciated. okay, -nydel (6 Replies)
Discussion started by: nydel
6 Replies
Login or Register to Ask a Question
INIT(8) 						      System Manager's Manual							   INIT(8)

NAME
init - initialize machine upon booting SYNOPSIS
/$cputype/init [ -ctm ] [ command ... ] DESCRIPTION
Init initializes the machine: it establishes the name space (see namespace(4) and newns in auth(2)), and environment (see env(3)) and starts a shell (rc(1)) on the console. If a command is supplied, that is run instead of the shell. On a CPU server the invoked shell runs cpurc(8) before accepting commands on the console; on a terminal, it runs termrc and then the user's profile. Options -t (terminal) and -c (CPU) force the behavior to correspond to the specified service class. Otherwise init uses the value of the environment variable $service to decide the service class. Init sets environment variables $service (either to the incoming value or according to -t or -c), $objtype (to the value of $cputype), $user (to the contents of #c/user), and $timezone (to the contents of /adm/timezone/local). With option -m init starts only an interactive shell regardless of the command or service class. On a CPU server, init requires the machine's password to be supplied before starting rc on the console. Init is invoked by boot(8), which sets the arguments as appropriate. SOURCE
/sys/src/cmd/init.c SEE ALSO
rc(1), auth(2), boot(8) INIT(8)