1
vote
1answer
41 views

Terminal command to include currently logged on user

I am trying to write a script that makes our network (active directory) users local administrator on their macs. I have the script that will do this: dseditgroup -o edit -n /Local/Default -a ...
0
votes
0answers
45 views

How to end unix app using terminal script

I'm piggybacking on this post: How do I close an OS X application from the command line using a alias defined in my .bash_profile? I am trying this to close a unix executable. But it doesn't work. ...
0
votes
1answer
2k views

How to make PuTTY's font automatically change color (while connected to a Linux server) as I did with Windows cmd.exe using a background batch script?

I was able to create a Windows Command Prompt that automatically changes its text color on a white background every ~1.5 seconds, thanks to the help of @dbenham and @Woody. I also use PuTTY every day, ...
0
votes
0answers
62 views

launching applications/terminals with curses-based programs running at startup dwm

I just configured most of dwm to my liking and I want to now set it up so that as soon as I log in, chromium is launched in the first tag with monacle (I have pertag installed), a terminal window is ...
0
votes
0answers
34 views

Making the 'script' log pretty [duplicate]

I often use the 'script' command in the terminal (on OSX) to keep a note of what I'm doing. However the script files generally look like: Script started on Wed Oct 2 11:12:24 2013 ...
1
vote
1answer
223 views

Split window programmatically with iTerm?

on my development workstation I often have to start the same commands every morning. zeus start, zeus server (booting rails via zeus), redis-server, and like 3 others. I know a lot of people would ...
0
votes
1answer
220 views

Windows Terminal Emulator with powerful scripting language

I have to deal with a legacy application exposing a CHUI (Character UI, i.e. VT100) on Solaris. Users access this via terminal emulation from Windows desktops. They use macros (sequences of characters ...
0
votes
3answers
979 views

How to run a command from the terminal/a script without the need to wait until the program exits?

The problem is that if I execute a command (eg. a Python script), the terminal or script is waiting until the program return a exit status so that it can continue or return to terminal. Is there a way ...
0
votes
1answer
240 views

Is there a way to set settings/environment variables per terminal/bash - Linux?

I'm relatively new to using Linux and just recently had a very interesting request to assists testing at the company I work for. Testers tests application through terminal commands and separate which ...
2
votes
1answer
90 views

Using SSH, transfer webURL to remote machine

Hi so i was doing some research in the library so i could use some pictures later on my Desktop computer in my room. I have space on my Lab account which i usually SSH into, and i was wondering if ...
1
vote
2answers
904 views

Close all Mac Terminal windows, but the one running a script

I am trying to create a shell script that runs a python simulation programing in 4 terminal windows. I have the script that launches the program four times in four separate terminal windows(total of ...
1
vote
1answer
559 views

Run mono application without terminal window?

Is it possible to run a mono application without having the terminal window open? I am trying to run KeePass 2.1.9 using mono on OS X Lion, and it does run fine. The problem is that it has the ...
3
votes
2answers
4k views

How can I enable Mountain Lion Airplay mirroring through command line?

I want to enable/disable airplay mirroring with an script and I don't know how to find what commands are executed when Airplay is activated. Any idea about how to do it or where to search? Thank ...
2
votes
2answers
1k views

Bash/xdotool: Commands work, but not in a script

I am making a bash script for Linux which closes the terminal window if the window loses focus. On the command line, I was able to do this: termwin=$(xdotool getactivewindow) while : do if [[ ...
0
votes
1answer
3k views

Ubuntu shortcut shell script launcher for multiple items

Ok every day I go through the same routine, and its tediously annoying. So I came up with a thought and wondered if its remotely possible. What I want to do is open maybe 3-5 terminal windows, and in ...
0
votes
1answer
266 views

How to prevent scripts from changing the terminal's window title?

I'm using GNOME Terminal and zsh on Ubuntu with Awesome WM. I need to launch a terminal window with a certain title set like "s1" and no script inside that terminal should change the title of the tab ...
0
votes
2answers
78 views

linux: package for specific “command history” on terminal line?

Is there a package I can download for Ubuntu that would allow me to type in,for example, cd [tab key] and then it would go through the recent cd commands I've typed in?
1
vote
2answers
125 views

terminate the background task launched by xterminal

I used Xterm -e command to run six programs in the background in six X terminals in my shell script. When I used PS command, I can see 6 Xterm process running in the background but I can't see the ...
2
votes
2answers
682 views

Remove bash startup behaviour (mac user)

When I start the terminal (which uses bash) a echoed message appears several times right before the message "You have mail." and it is added by someone that has used my computer. It also happens when ...
1
vote
3answers
3k views

“No commands supplied” error when executing a Python script on Ubuntu

I checked out a SVN repository, and tried to python setup.py on my Ubuntu 10.04 terminal, which is a Python script, but I get the following error: abc@def:~/Downloads/a-read-only$ python setup.py ...
0
votes
2answers
2k views

Open new terminal from script to get user input and use input in script

Is it possible from a background shell script to open a new terminal (xterm, gnome-terminal, whatever), get some user input, close the newly opened terminal and use the data that was input?
5
votes
4answers
5k views

How to execute a shell script with selected files/folders in finder?

I'm coming from Linux where it's easy to run a script against a set of files in nautilus or dolphin, but I was kind of surprised to see that this isn't easy in OSX. Preferably, I would love to be ...
2
votes
2answers
133 views

Is there a tool like `script` (Linux/Solaris/etc) for Windows?

Perhaps the worst-named tool in the *nix world, script is extremely handy when you want to capture all the output of a terminal session. Is there a tool like it for Windows? Specifically, without ...
1
vote
2answers
450 views

Why does an alias work in the Terminal, but not when called from a script?

I've added the following to my ~/.bash_profile # opens "flashlog.txt" in Console alias trace='open -a /Applications/Utilities/Console.app/ ~/Library/Preferences/Macromedia/Flash\ ...
3
votes
5answers
2k views

How to run a bash script outside of a terminal?

Hey All, wrote this script to confuse my girlfriend when she is using my computer. The only trouble is that if the terminal gets closed the script stops to execute. It currently executes in the ...
0
votes
2answers
1k views

Need a sample script to perform an automated action on a Cisco router via ZOC SSH

Does anymone show me a script sample using the software "ZOC Terminal" (version 6.2) to perform an simple automatic action on a router, let's say a reboot or change of daylight savings time or ...