Sponsored Content
Full Discussion: Terminal script
Operating Systems OS X (Apple) Terminal script Post 302088128 by [MA]Flying_Meat on Friday 8th of September 2006 05:26:38 PM
Old 09-08-2006
It would be helpful to know why this operation is important because there may be a better way to accomplish the "why" than you might realize.
I can't image a use for having Terminal launch at startup without a window. Not that there isn't one, but I just can't imagine it.

AppleScript can be used to hide a window, but the application first has to create the window (which displays on creation), then hide it immediately. The window is thus only visible for a split second.

You can send applescript code from shell scripts using the osascript command (man osascript).

You can examine Terminal's applescript functionality from within Script Editor.app by selecting "Open Dictionary..." from the Script Editor "File" menu, then navigating to Terminal.app.

Otherwise, I don't know if this is possible from the command line.
Smilie
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

connecting to unix through hyper terminal - as a dumb terminal

I just changed from windows NT to XP and I am no longer able to connect to my unix system. I used to use hyper terminal -- which acts as dumb terminal to my main frame unix system. I think one of the options used to be "direct to comX". This option isn't listed now. I use a serial port and the... (2 Replies)
Discussion started by: michelle
2 Replies

2. UNIX for Advanced & Expert Users

Pseudo-terminal will not be allocated because stdin is not a terminal.

I am trying to automate a SSH login using Keys using the following command ssh -i id_rsa usernamw@ipaddr. I am successful in doing this and i am getting the Warning Screen and I logon successfully. but when I am executing the command tail -1cf put.dat | ssh -i id_rsa username@ipaddr > get.dat ... (1 Reply)
Discussion started by: Shivdatta
1 Replies

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

4. Shell Programming and Scripting

running terminal with script

suppose we have a file ab 81 and another file exec < $1 while read line do ssh root@172.16.1.$line done while running the command sh file.sh ab output display as shown Pseudo-terminal will not be allocated because stdin is not a terminal. root@172.16.1.81's password: after... (3 Replies)
Discussion started by: cdfd123
3 Replies

5. OS X (Apple)

terminal script stops after script command :(.

Hello, i am trying to write a script for terminal for my mac that i may drag into the terminal and will excute the following command: script -akq Desktop/TerminalLogin/Cisco1Bob.txt telnet x.x.x.x the problem is that when i drag the text file to the terminal window the script stops after... (6 Replies)
Discussion started by: drdread
6 Replies

6. UNIX for Dummies Questions & Answers

Gnuplot wxt terminal vs x11 terminal

Hi, I installed ubuntu recently on my pc. And I installed gnuplot as well. When I first started working with gnuplot it was working . I did a plot and when I wanted to fit my data something happened and not the default terminal of gnuplot is xwt! I changed it to: set terminal x11, but it... (0 Replies)
Discussion started by: cosmologist
0 Replies

7. OS X (Apple)

Terminal Command into script

Hi All I have this script that checks to see if ntp is enabled on a machine launchctl load -w /System/Library/LaunchDaemons/org.ntp.ntpd.plist It retuns org.ntp.ntpd: Already loaded if it is loaded, is there a way to script it so that if it is loaded it does not say anything but... (2 Replies)
Discussion started by: ab52
2 Replies

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

9. Shell Programming and Scripting

Cannot get terminal application to launch with a graphical launcher when successful in terminal

I have been having an extremely annoying problem. For the record, I am relatively new at this. I've only been working with unix-based OS's for roughly two years, mostly Xubuntu and some Kali. I am pretty familiar with the BASH language, as that's the default shell for debian. Now, I've made this... (16 Replies)
Discussion started by: Huitzilopochtli
16 Replies

10. Shell Programming and Scripting

Print Terminal Output Exactly how it Appears in the Terminal to a New Text File

Hello All, I have a text file containing output from a command that contains lots of escape/control characters that when viewed using vi or view, looks like jibberish. But when viewed using the cat command the output is formatted properly. Is there any way to take the output from the cat... (7 Replies)
Discussion started by: mrm5102
7 Replies
TERMINAL(1)							       Xfce							       TERMINAL(1)

NAME
Terminal - A Terminal emulator for X SYNOPSIS
Terminal [OPTION...] DESCRIPTION
Terminal is what is known as an X terminal emulator, often referred to as terminal or shell. It provides an equivalent to the old-fashioned text screen on your desktop, but one which can easily share the screen with other graphical applications. Windows users may already be familiar with the MS-DOS Prompt utility, which has the analogous function of offering a DOS command-line under Windows, though one should note that the UNIX CLI offer far more power and ease of use than does DOS. Terminal emulates the xterm application developed by the X Consortium. In turn, the xterm application emulates the DEC VT102 terminal and also supports the DEC VT220 escape sequences. An escape sequence is a series of characters that start with the Esc character. Terminal accepts all of the escape sequences that the VT102 and VT220 terminals use for functions such as to position the cursor and to clear the screen. OPTIONS
Option Summary Here is a summary of all the options, grouped by type. Explanations are in the following sections. General Options -h, --help; -V, --version; --disable-server; --default-display=display; --default-working-directory=directory Window or Tab Separators --tab; --window Tab Options -x, --execute; -e, --command=command; --working-directory=directory; -T, --title=title; -H, --hold Window Options --display=display; --geometry=geometry; --role=role; --startup-id=string; -I, --icon=icon; --fullscreen; --maximize; --show-menubar, --hide-menubar; --show-borders, --hide-borders; --show-toolbars, --hide-toolbars General Options -h, --help List the various command line options supported by Terminal and exit -V, --version Display version information and exit --disable-server Do not register with the D-BUS session message bus --default-display=display Default X display to use. --default-working-directory=directory Set directory as the default working directory for the terminal Window or Tab Separators --tab Open a new tab in the last-specified window; more than one of these options can be provided. --window Open a new window containing one tab; more than one of these options can be provided. Tab Options -x, --execute Execute the remainder of the command line inside the terminal -e, --command=command Execute command inside the terminal --working-directory=directory Set directory as the working directory for the terminal -T, --title=title Set title as the initial window title for the terminal -H, --hold Causes the terminal to be kept around after the child command has terminated Window Options --display=display X display to use for the last- specified window. --geometry=geometry Sets the geometry of the last-specified window to geometry. Read X(7) for more information on how to specify window geometries. --role=role Sets the window role of the last-specified window to role. Applies to only one window and can be specified once for each window you create from the command line. It is mostly used for session management inside Terminal --startup-id=string Specifies the startup notification id for the last-specified window. Used internally to forward the startup notification id when using the D-BUS service. -I, --icon=icon Set the terminal's icon as an icon name or filename. --fullscreen Set the last-specified window into fullscreen mode; applies to only one window; can be specified once for each window you create from the command line. --maximize Set the last-specified window into maximized mode; applies to only one window; can be specified once for each window you create from the command line. --show-menubar Turn on the menubar for the last-specified window. Can be specified once for each window you create from the command line. --hide-menubar Turn off the menubar for the last-specified window. Can be specified once for each window you create from the command line. --show-borders Turn on the window decorations for the last-specified window. Applies to only one window. Can be specified once for each window you create from the command line. --hide-borders Turn off the window decorations for the last-specified window. Applies to only one window. Can be specified once for each window you create from the command line. --show-toolbars Turn on the toolbars for the last-specified window. Applies to only one window. Can be specified once for each window you create from the command line. --hide-toolbars Turn off the toolbars for the last-specified window. Applies to only one window. Can be specified once for each window you create from the command line. EXAMPLES
Terminal --geometry 80x40 --command mutt --tab --command mc Opens a new terminal window with a geometry of 80 columns and 40 rows and two tabs in it, where the first tab runs mutt and the second tab runs mc. ENVIRONMENT
Terminal uses the Basedir Specification as defined on Freedesktop.org[1] to locate its data and configuration files. This means that file locations will be specified as a path relative to the directories described in the specification. ${XDG_CONFIG_HOME} The first base directory to look for configuration files. By default this is set to ~/.config/. ${XDG_CONFIG_DIRS} A colon separated list of base directories that contain configuration data. By default the application will look in ${sysconfdir}/xdg/. The value of ${sysconfdir} depends on how the program was build and will often be /etc/ for binary packages. ${XDG_DATA_HOME} The root for all user-specific data files. By default this is set to ~/.local/share/. ${XDG_DATA_DIRS} A set of preference ordered base directories relative to which data files should be searched in addition to the ${XDG_DATA_HOME} base directory. The directories should be separated with a colon. FILES
${XDG_CONFIG_DIRS}/Terminal/terminalrc This is the location of the configuration file that includes the preferences which control the look and feel of Terminal. ${XDG_DATA_DIRS}/Terminal/Terminal-toolbars.ui This file includes the user interface definition for the toolbars. If you customize the toolbars using the graphical toolbars editor, Terminal will store the new toolbars layout in the file ${XDG_DATA_HOME}/Terminal/Terminal-toolbars.ui. SEE ALSO
bash(1), X(7) AUTHORS
Nick Schermer <nick@xfce.org> Developer Benedikt Meurer <benny@xfce.org> Software developer, os-cillation, System development, Developer NOTES
1. Freedesktop.org http://freedesktop.org/ Terminal 0.4.8 06/21/2011 TERMINAL(1)
All times are GMT -4. The time now is 05:03 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy