Programming :: Script To Run Terminal Interface Automatically?

Jan 18, 2010

I have to run a program repeatedly that demands a few responses from the users when run: a few yes/no questions and a filename. To save time I was going to use a script. I already use this one to run the program once ("program" is the command to launch the program I use):

Code:
program << echo
file.log
y
n

[Code]....

View 2 Replies


ADVERTISEMENT

Networking :: Network Interface Not Coming Up Automatically At Boot?

Feb 10, 2010

I installed Fedora 12 on an Eee PC 1001HA. This laptop has a Ralink RT3070 wireless chipset, for which the driver is not yet in the kernel (still in staging I believe). However I downloaded the driver, compiled it, and installed it. AFAICT, it works fine.

One small obstacle remains: I am uable to get the network interface to come up automatically; I have to run # ifconfig ra0 up. Because of this NetworkManager never sees the wireless interface, making connecting to WAPs a chore.

I created a ifconf-ra0 file in /etc/sysconfig/network-scripts, and it includes the line ONBOOT=yes, but this doesn't do the trick.

View 11 Replies View Related

Ubuntu Networking :: Activate Wireless Network Interface In Terminal?

Feb 26, 2010

running 9.10 server, have SSH access through LAN, but I'd like to move box out of my neighbor's (shared internet & the router's in his place) and into my own space. Would have done so already, but I can't get the wireless working. Details below:lshw -C network gives:

Code:
*-network:0 DISABLED
description: Wireless interface

[code]....

View 2 Replies View Related

Ubuntu :: Terminal Services Automatically Connect?

Jan 16, 2010

I currently have a startup application that automatically runs the Terminal Server Client at startup. what command I need to enter into the startup app that would make it automatically connect?

View 1 Replies View Related

Ubuntu :: Automatically Execute Terminal Command?

May 13, 2010

I googled around and couldnt find what I was looking for. Maybe I used the wrong search terms, but whatever. I was wondering if there was a possibility to execute a series of terminal commands just by double-clicking an icon. For example, there would be an icon on my desktop, and if I were to doubleclick it, it would execute "cd ~/.wine2" and then "WINEPREFIX="$HOME/.wine2" wine program.exe".

I realise that most of you will probably go "duh, that's simple" or something similar, but I am extremely new to ubuntu, and dont know my way around yet.

View 3 Replies View Related

Ubuntu :: Setup A Script To Run In The Terminal Automatically?

May 22, 2010

10.04 LTS 64bit How can I setup a script to run in the terminal automatically?Currently I have a script on the desktop that when I double click it brings up a dialog that asks me to Run In Terminal, Display (in gedit), Cancel, or Run. I'd like to get rid of this extra dialog and have the script just run in the terminal.

View 2 Replies View Related

Ubuntu :: Automatically Save Terminal Sessions?

Nov 23, 2010

i'd like to ask how could I save my Terminal Sessions to a text file or something like the option we could do at Putty or Kitty?

View 1 Replies View Related

General :: How To Open Terminal Automatically At Run Level 5

Jun 25, 2010

I want that when ever my Red Hat Linux machine use run level 5 it automatically open terminal. Is there anyway to do it? Normally I see the desktop, Right click on anywhere and click for terminal then it can see terminal.

View 6 Replies View Related

Programming :: Socket Programming Select Interface

Jan 15, 2010

I have currently had the need to go back to basic socket programming, and implemented a simple udp packet sender. But I realized I needed to be able to select which network interface to send the packets from.

The reason is so that one of the interfaces has vlan tagging, and I need my UDP packets to be accordingly vlan tagged. For example, one of the interfaces is eth1.200.

View 2 Replies View Related

Programming :: Interface "eth0" Which Is Down - Wasn't Displayed But Loopback Interface Has Been Displayed

Jan 6, 2011

The following are the output of command "ifconfig -a":

[Code]....

The interface "eth0", which is down, was not displayed, but loopback interface has been displayed. So, how can I make my application display all interfaces, including the interfaces which are down, but excluding the loopback interface?

View 4 Replies View Related

Ubuntu :: Clicking The Icon The Commands Ran In The Terminal Automatically?

Jan 15, 2010

I had automated some tedious commands in the terminal by writing them in a text file and placing an icon on the panel. By clicking the icon the commands ran in the terminal automatically. I cant for the life of me remember the icon command I used to get this to work.

View 3 Replies View Related

Ubuntu :: Terminal Closes Automatically Because Of Changed Preferences?

Jul 26, 2010

I can't open my terminal anymore. I changed a preference under the Title and Command tab in the preferences of the GNOME terminal. I put a custom command instead of the normal shell, but after I closed I realized that under the "When Command Exits" menu, I chose "Close Terminal". This means that the terminal closes automatically as soon as the command is done. After I open, it finishes the command and closes. I was wondering whether there is some way to change the terminal preferences from somewhere else or reinstall the terminal, and I obviously can't use terminal commands.

View 6 Replies View Related

Ubuntu :: Automatically Start Apps In Terminal With Titles?

Sep 28, 2010

One of the first things I do when starting Ubuntu (Netbook Edition) is to open a Terminal (ctrl-alt-T) with three tabs in it (ctrl-shift-T, ctrl-shift-T), one with irssi, one with ipython and one extra with just the commandline. Then I set the titles (F2) of the first two respectively to "irssi" and "ipython".Is there some way to write a script that automatically does all this? Or maybe save this configuration in a profile setting or something?

View 3 Replies View Related

Ubuntu :: Launching Terminal Apps In URXVT Automatically

May 12, 2011

Problem with use of -hold|+hold on rxvt-unicode (urxvt) v9.09 on ubuntu server. On startup, I'm trying to launch terminal apps in urxvt automatically. E.g:
Code:
"urxvt -e /usr/bin/weechat-curses +hold"
or
Code:
"urxvt -hold -e mutt"

However, -|+hold does not seem to hold the terminal open. There is a flicker of a new window opening & then it's gone. I'm trying to invoke this from .xinitrc (startx-->.xinitrc) and also tried commands from inside awesome wm rc.lua (awful.util.spawn_with_shell("urxvt -hold -e mutt") seem to get same flicker result but closes immediately. I see this error in .xsession-errors, which might be relevant (do I perhaps need to specify the display??).

Code:
[1461:1634:41805904:ERROR:all_status.cc(117)]
Unrecognized Syncer Event: 7
E: awesome: a_xcb_io_cb:230: X server connection broke
urxvt: X connection to ':0' broken, unable to recover, exiting.

Code:
rxvt-unicode (urxvt) v9.09 - released: 2010-11-13
options: perl,xft,styles,combining,blink,encodings=eu+vn+jp+jp-ext+kr+zh+zh-ext,fade,transparent,tint,afterimage,XIM,frills,selectionscrolling,wheel,slipwheel,smart-resize,cursorBlink,pointerBlank,scrollbars=plain+rxvt+NeXT+xterm
Usage: urxvt [-help] [--help]
...
[-n string] [-sl number] [-embed windowid] [-depth number]
[-/+override-redirect] [-pty-fd fileno] [-/+hold] [-w number] [-b number]
[-/+bl] [-lsp number] [-letsp number] [-/+sbg] [-mod modifier] [-/+ssc]
[-/+ssr] [-pe string] [-blt string] [-e command arg ...]

Code:
~$ awesome -k
✔ Configuration file syntax OK.
link to urxvt man: [URL]

View 7 Replies View Related

General :: Automatically Open Terminal At Login Time?

Jun 7, 2011

I am using red hat .I want that when ever the user login in GUI interface the terminal windows automatically open and then the user want to logout it 1st close the terminal and then login. There is a file in #ls -a i.e .bashrc and .bash_logout

View 13 Replies View Related

Ubuntu :: Can't Open Terminal And Other Apps After Automatically Update And Reboot

Sep 24, 2010

I did an automatic update and rebooted this morning and I now have a bit of a nightmare situation where I can't open the majority of applications, including the terminal. When I rebooted, my desktop loaded as normal, but then when I try to open the terminal (from Applications -> Accessories or from my quick launch panel), nothing happens other than the quick launch panel disappears for a second then reappears. This is the case for most other apps, but not for Chrome (obviously).

EDIT: Used Alt+F2 to open the terminal, ran safe upgrade and then rebooted, but still having the same issue. As Ubuntu was booting, there was a "Broken pipe" message, which didn't stop the boot process but is still a bit worrying. I've run a file system check but this hasn't resolved the problem either.

View 9 Replies View Related

Ubuntu :: Automatically Run A Process In A Screen Session And Then Detach And Quit Terminal

Jul 24, 2010

There are often times when the best way to launch an application is from the terminal, but it is a graphical application and after it is launched the terminal is useless.

Examples of places where a terminal is convenient are when a process starts lots of child processes and is also unstable; you can be sure to kill all of its children simply by using Ctrl-C at the terminal. Also it allows me to read program output and to set up the terminal environment to be optimal for the application (for example "unset LIBGL_ALWAYS_INDIRECT")

With GNU screen, I can get around the hassle of having a terminal window open by using something like the following in a terminal window:

Code:
screen
my_command
Ctrl-A d

and then I can close the terminal and the program will keep running. Then I just type "screen -r <Tab>" (the tab will get me my screen session if there is only one such session) in any terminal window, even a tty, and I can get the screen session back and use Ctrl-c or something.

So my question is, is there a way to do this automatically so that a launcher or script will start a screen session, inside that screen session start a process, and then detach from that screen session without me having to manually open and close a terminal and type the commands?

View 2 Replies View Related

General :: Using Script To Automatically Record Terminal Sessions When A User Logs In?

Mar 3, 2010

I'm trying to set up automatic recording of user sessions when they login without their knowledge. I tried sticking the script command into /etc/profile and but that didn't really work. I also tried /etc/bashrc but that had the same affect.I have also tried setting the shell in /etc/passwd to SHELL=/bin/bash /usr/bin/script -q /testing.txt.

View 8 Replies View Related

General :: Make Ubuntu's Terminal Program Automatically Copy To Clipboard Selected Text / Paste

Jul 6, 2011

i'm used to using putty on a window's machine.With putty whatever you select is automatically on the clipboard without having to right click and select copy.And right click just pastes.

View 1 Replies View Related

Programming :: Network Interface Is Down?

Oct 27, 2009

Is there any API or event notification scheme to tell when the network is down/up?

View 1 Replies View Related

Programming :: Best Graphic Design Interface?

Apr 3, 2011

what the best free linux graphic design interface was? Possibly one from the ubuntu one software center. I tried boa constructor and it was glitchy and kept crashing. I want something very easy to use and as simple as possible as i am new to programming. I want something that also supports the major programming languages like python C++, etc and was also wondering where i could go to learn codes for python.

View 4 Replies View Related

Programming :: Event When Network Interface Goes Down?

Jul 13, 2010

I am trying to write an app that will perform some actions when a network interface is unplugged. Is there a way to get the OS to signal me when a network interface is unplugged. I have looked at DBus but can't figure it out.

View 1 Replies View Related

Programming :: Opening A Network Interface?

Apr 29, 2011

Is there a way to open a network interface (that is not configured, yet), to send and receive some packets? The program will be running with root permissions.

View 11 Replies View Related

Programming :: Interface Glade 3.6.7 And 'C' In Ubuntu 10.10?

Apr 18, 2011

this is my first time here: I've been programming GUI software in C# in MonoDev for some time now. I just noticed that I can use my favorite language, C, with Glade to do the same thing. I've been going through some tutorials with a little frustration with them. Some seem to be written for older Glade versions.

The latest example had me save my Glade project to a "tutorial.glade" file. Then run it through a 'gtk-builder-convert' utility. Problem: the utility program returns errors indicating the the tutorial.glade file was written badly, that there is supposed to be a <glade-interface> tag that is missing.

[Code]...

View 1 Replies View Related

Programming :: Ways Of Handling The ADT Interface?

Nov 30, 2010

During my read, "Code Complete",the author described the different ways of handling the ADT interface.He has wrote this passage:

Quote:

Option 2: Explicitly provide the data used by the ADT services. In this approach, you declare the data that the ADT uses within each routine that uses an ADT service. In other words, you create a Font data type that you pass to each of the ADT service routines. You must design the ADT service routines so that they use the Font data that's passed to them each time they're called. The client code doesn't need a font ID if you use this approach because it keeps track of the font data itself. (Even though the data is available directly from the Font data type, you should access it only with the ADT service routines.This is called keeping the structure "closed.") The advantage of this approach is that the ADT service routines don't have to look up font information based on a font ID. The disadvantage is that it exposes font data to the rest of the program, which increases the likelihood that client code will make use of the
ADT's implementation details that should have remained hidden within the ADT.

The problem is that it is a bit subtle in terms of coding for me. Can anybody give more concrete example, in working codes, especially in Java?

View 2 Replies View Related

General :: System-auth Configuration \ Can't Login And/or Can't Login In The GUI Interface And A Terminal?

Apr 20, 2010

I'm hoping someone can help me out.I made configurations changes to/etc/pam.d/system-auth and /etc/pam.d/login. When these files are configured the way they are, I can't login and/or I can't login in the GUI interface and a terminal. Contents of /etc/pam.d/login

Code:
#%PAM-1.0
#line added per security guide

[code]....

View 2 Replies View Related

General :: Terminal Command / Centos Server Starts Mysqld, Httpd And Ftpd Services At Boot Time Automatically?

Dec 27, 2010

Can anyone tell me what command can be used so that the Linux Centos Server starts mysqld, httpd and ftpd services at boot time automatically?

View 2 Replies View Related

Programming :: Running Iperf On Machine From Web Interface

May 22, 2011

I'm not sure if I'm posting in the correct section, so please move it if it isn't.I currently have a bunch of laptops for testing a distributed network - throughput etc., using a bunch of bash scripts that send or listen to multiple addresses and ports, which run iperf. But at the moment I have to run it from each machine, or log in through ssh.To make this easier, I'd like to be able to present a bunch of buttons and selections from a web interface, so I can just put in the hostname of each laptop, and then click on a presented 'send' or 'listen' button to then execute iperf, and be able to kill it early if need by, say, by a 'stop' button.

What is the best way to go about this? Python, JavaScript, Java Servlet?And how would I do it? Just one of the above on Apache or something on each laptop?I just don't which direction to start heading in. Any help would be greatly appreciated.BTW. The network is considered to be not connected to the Internet, so I'm not too concerned about security, but if you've got any suggestion of how to start and stop iperf securely from a web interface on a machine, I'm interested.

View 2 Replies View Related

Programming :: Interface ADE7758 With AT91sam9261 Using SPI Protocol?

Sep 29, 2010

how to interface ADE7758 with AT91sam9261 using SPI protocol

View 2 Replies View Related

Programming :: Library For Get Info About Network Interface

Jun 23, 2010

I want to get info about network interfaces in C , is there any library for this purpose ?

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved