terminal

c code for perpetually changing center colour in xeyes(terminal)

i'm trying to write a c code which opens the xeyes application and then those eyes keep changing its color constantly for a particular eriod of time.. i tried to achieve this by executing xeyes with one center color, adding a delay of 3 seconds, killing the process, and opening xeyes with another center colour and so on inside a loop. ...

Add Network Service (VPN) Using Terminal

Basically my problem is that I need to write a script that automatically creates a VPN service in Mac OS X Snow Leopard that can be used on multiple machines to speed up the process rather than going through system preferences every single time. It is specifically needed to run on 10.6.* because the VPN needs to use the Cisco IPSec proto...

interacting with the terminal in linux for passwords?

I asked this question and doing echo pass | cmd and cmd <<< pass do not work with mysql and another app i tried. One guy comments that passwords are through the terminal and not stdin, that sounds secure. How do i do that? using bash, .NET or C++? ...

Windows Terminal Services API in Java

Hello, I was curious if it is possible to use the Windows Terminal Services API from a Java application? I am trying to deploy an app to a Linux system that can get the statistics of our servers and information about specific sessions. If there is an API out there that would let me use the Terminal Services API I would be very pleased. ...

How to move up a directory with Terminal in OSX

Kiddie pool question. When I launch a new Terminal window, I starts me in 'Macintosh HD/Users/MyName'. How can I back out of my user directory back up to the top level? ...

Where color of cursor line is defined?

If I set cursorline option I get my current cursor line underlined and all characters which color is not specified also turn to yellow (yellow appears only if Normal highlight group is untouched). I wonder, where this color (yellow) is defined? Edit: I know about CursorLine highlight group. The problem is that in default colorscheme whi...

Terminal Widget for MFC/Win32 applications?

I need a terminal Widget which is able to emulate a windows console and a simple VT100 terminal on Windows. Something like VTE for GTK or QConsole for QT. Is it even possible to run a Windows Console like cmd.exe inside a child window? ...

emacs ansi-term background color

I'm having a problem changing the background color in ansi-term (and also term - but shell is fine). It displays colors fine from output but the background color of the out put is always white. Not the entire buffer, but just under actual characters that have been outputted. If I do something like (add-hook 'ansi-term-mode-hook (lam...

Editing large number of text files

I have about 350 text files which comprise the entire contents of 5 folders on my HD. For each of these files, I would like to delete a specified number of characters at the start and end of each file. I have no knowledge of AppleScript but suspect it may be suitable for what I want to achieve. Any help on automating this would be greatl...

c# using monthcalendar or datetimepicker in terminal server

I have a form with a datetimepicker on it which runs fine locally when I run my program from a terminal server the calendar in the datetimepicker seems to be a lot larger than when run locally this behaviour is the same if i use a month calendar control instead it seems that there is an issue with terminal server with regards to displ...

Delete line ending with a newline character in text file

I need to delete the same line in a large number of text files. I have been trying to use sed, but I cannot get it to delete the newline character at the end. The following successfully deletes the line, but not the newline: sed -i -e 's/VERSION:1//' *.txt I have tried using the following to delete the newline also, but it does not wo...

Gnome-terminal - How to Copy selection to clipboard automatically?

I want to make gnome-terminal behave in such a way that when the end user selects a region on the terminal (with a mouse or mouse key), it gets automatically copied into the clipboard. Is it possible at all? If so, how? ...

color the lines of logcat on Linux [android]

The Logcat in Eclipse has colors ofr errors, warning, debug, ... How can I do to get the same result on Linux (Ubuntu) when I run the command 'adb -e logcat' in a terminal to get it colored? ...

How do you open a terminal with a specific path already cd'ed to?

How do I use the terminal to open another terminal window but with a path I specify? I am using automator to load my work stuff when I get to work, but I need to know how to do this: Open Terminal and Type: • cd Work/Company/Project/ • script/server And then new tab in that terminal window and cd to the same folder. ...

How do you edit files over SSH?

I program with eclipse and sometimes use GUI text editors like SciTE or vim. However, I'm at a point in a project that requires me to edit files over a ssh connection in a 80 column SSH window. Since I have to (* shiver*) sudo vim before I can open the file I'm not sure how to open the file in an editor outside the terminal (that would ...

How can I spy on communication between a process and a terminal?

I have a Linux process developed by a third-party that communicates with a terminal. For debugging I want to see the communication going back in forth. One might think cat would do the trick (to see one direction): ./third-party-app & cat /dev/tty ...but it does not. Rather, cat will steal half of the data intended for the ...

com0com RS232 terminal Java program

i made a JAVA program that runs on a computer with 2 RS232 ports it works pretty good i connected 2 devices that comunicate with eachother trough RS232 i put the computer between the cable you can see everything getting send on a terminal window but after a random amount of time 1 device stops responding on queries normally device 1 ...

How else can I replace multiple lines through the terminal in a Rails app?

Is there an alternative way to do the following one-liner replacement of text across all files in a Rails app? perl -pi -e 's/replaceme/thereplacement/g' $(find . -type f) Perl complains that there are too many files if I include the RAILS_ROOT, but it works for subdirectories. ...

Makefile on terminal

Hi, I have seen a "basic Makefile tutorial" today, but I still don't understand a few things: What does the '&' character do in the line: "emacs Makefile &" ? After I have opened the emacs editor and created the Makefile file, how do I use it in order to compile my "source_code.c" file?? Thanks in advance, Sagiftw ...

Monitoring/highlighting terminal stdout for keywords

Because our recent development work, I was put into a position where I have to monitoring a few of our application's output logs, specifically I am looking for a certain error code(s). Because my limited scripting skill right now the only thing I can do is to tail -f the log file and just keep looking for update. I also use PuTTY. I am h...