Debian Programming :: Automate Command Line At Start-up

Jan 26, 2015

I'm trying to automate two command lines, a synclient and a syndaemon. They both work well if I type them manually in a terminal, but if I do a littre script to do this, tap to click and scrolling don't work anymore.

This is the script I wrote:
Code: Select all#!/bin/bash
synclient VertEdgeScroll=1
syndaemon -d -t -K
exit 0

So I made a chmod +x on the file, placed it in ~/bin then change PATH to include the directory. Then I added this file in "Startup applications".

The scripts run ok, mais it has a different effect than if I run the commands manually.

View 10 Replies


ADVERTISEMENT

General :: Start KDE From Command Line (Debian Lenny On IMac)?

Jan 22, 2010

I have a nearly 10 years old iMac at home and installed Lenny on (somehow, I had to thrash Mac OS 9.2 :-P). Everything was successful until now, but on entering "startkde", the screen fills withkpersonalizer: cannot connect to X serverlines. Upon looking at other threads here I tried mdetect, installing X11... but to no avail

View 14 Replies View Related

Programming :: Effect Of Using Eval To Execute A Command As Opposed To Writing It On The Command-line?

Jun 18, 2010

Code: cmd='date | wc'

$cmd If this script is executed, an error is generated. The reason written was that "The execution fails because the pipe is not expanded and is passed to date as an argument".What is meant by expansion of pipe. When we execute date | wc on the command line, it goes fine.then | is not treated as an argument. Why?

View 4 Replies View Related

Programming :: Command Line Invocation Of Gnome-terminal To Run More Than One Command?

Feb 16, 2010

I am trying to learn how to pass more than a one-command startup for gnome-terminal.

I will give an example of what I'm trying to do here:

Code:
#! /bin/bash
#
#TODO write this for gnome and xterm
USAGE="
${0##*/} [-x] [-g]
code....

However, running with the -g option to invoke gnome-terminal, I get a "There was an error creating the child process for this terminal" error.

This same error occurs if the gnome-terminal line is changed to

Code:
gnome-terminal -e mcTerm

Is there any way to pass more than one command on to gnome-terminal? I have tried various single and double quoting senarios and in a final attempt, I abstracted to an exported function all to no avail. Perhaps even though gnome-term is better at many things than xterm, xterm trumps it in this instance.

View 4 Replies View Related

Fedora :: Where To Start Command Line

May 4, 2011

I may need to handle a Red Hat server soon and thought that has the same command line.Where do I start if I wanted to learn the command line? Especially, how do you connect to a Redhat / Fedora Server using console on windows and do C programming

View 6 Replies View Related

General :: Start .pps In Command Line?

Jun 16, 2010

i'm using ubuntu with the GUIi have a .pps (power point presentation) on the desktop. I installed the powerpoint viewer and made it the default program for opening the file.when i double click on the file everything works.my problem is i need this on a schedule so i downloaded scheduled task.in scheduled task they ask me the command line i want to execute and that's where it doesn't work. I checked the "allow executing file as program" box on the file but i get the error cannot execute binary file.

View 1 Replies View Related

Programming :: Convert This Awk Command From Command Line Into An Awk Script ?

Oct 15, 2010

I'm trying to convert this awk command from command line into an awk script, but just cannot get it to work:

This is what i have after my BEGIN

Am i missing something here? this just prints out the count for everyline, not counting lines on 5th field that match 'A'

View 1 Replies View Related

OpenSUSE :: Start VirtualBox From Command Line?

Feb 5, 2010

if is posible to start a VM from the command line?

[code]...

View 3 Replies View Related

General :: Start GUI Programs From The Command Line?

Aug 18, 2010

In Windows, if I have a console window open, type winmine, and press enter, Minesweeper will appear, completely separate from the cmd program. The Minesweeper instance is not tied to the command prompt in any way that I know of, with the exception of Minesweeper's parent being set to that instance of the command prompt. It's different in Linux, however.

In Linux, if I have a console window open, type emacs and press enter, Emacs will open, but it seems tied to the command line. Specifically, it appears that I can't use the command line anymore until that instance of Emacs is closed. Is there a way to replicate the Windows behavior in Linux?

View 11 Replies View Related

Ubuntu Multimedia :: Start Only In Command Line?

Apr 23, 2010

Ubuntu 9.10 (Karmic Koala) 64 bitlaptop Asus f5n vidio: GeForce 7000MI try to remove piton2.6, but system freeze, after these ubuntu show massage (after reboot)"Ubuntu is running in low-grahics mode our screen, graphics card, and input device settings could not be detected correctly. You will need to configure these yourself"I press "ok"and give me next list of options"run ubuntu in low-graphics mode for just one session" -- system freeze "regonfigure graphics" -- no resultI try to reinstall graphic driver "nvidia-glx-185" -- no result

View 3 Replies View Related

Ubuntu :: Start The Desktop Environment From The Command Line?

Mar 14, 2010

how to start the desktop enviorment from the command line.

View 2 Replies View Related

Ubuntu :: Start Up Graphical Mode From Command Line?

Sep 19, 2010

Is it possible to instruct Ubuntu to start up (GUI) Graphical User Interface mode from (CLI) Command Line Interface mode? In the old days, you can type "win" in DOS to get into Windows - something along that line. Is it possible for Ubuntu in this case?

Yes, you can reboot to switch between the modes, but shouldn't there be a command for this?

View 2 Replies View Related

Slackware :: Start Compiz And Plugins From Command Line

May 20, 2010

I've been searching for hours now on how to start compiz from command line and configure the plugins. I just want to use the compiz core package in Slackware (no add-ons for now). I've figured out starting compiz

Code:
compiz --replace
and the windows decorator

Code:
gtk-window-decorator --replace
kde-window-decorator --replace
for gtk based or kde respectively. I know how to start the plugins (by putting their names in the compiz command), but not what all of their command line names are.

What I'm looking for is all the console names of the base plugins (and eventually the others too), the order they need to be started in (if any), how to automatically start compiz when X starts, and how to change plugin settings (all without ccsm). How to do the above stuff without the use of a graphical tool.

View 14 Replies View Related

General :: 'automate' That 'rows Selected' Preceded By Number Is Always Last Line

Jul 22, 2010

I'm not that familiar with sed and awk in order to be able to solve this problem on my own, so I'm calling on you for a bit of assistance. I'm writing a Nagios plugin to check our Oracle tablespaces and the output is given in one line like this: 1.04007771 TEMP 0 UNDOTBS1 .005340579 USERS 0 7 rows selected. I've been playing around with sed like below to delete the obsolete info and change every second space into a newline:

[code]...

how many tablespaces there are so I'd have to check all databases and 'hardcode' the tablespaces in my script. Is there any way to 'automate' this knowing that 'rows selected' preceded by a number is always the last line and using a sort of counter to auto-adjust the number to put in the -e 's/ / /2' part?

View 7 Replies View Related

OpenSUSE :: Invoking The Gnome Start Menu From The Command Line?

Jun 28, 2010

I'm wanting to be able to run the Open Suse start menu from the command line.king remotely, I have found that I have faster response time by only running specific X components instead of an entire desktop (particularly useful under Windows 7 Cygwin). Specifically, I'd like to invoke the start menu from a ssh command line.On Linux Mint,line command is:mintmenuWhat is the equivalent command to bring up the Slab Start Menu on Open Suse?

View 8 Replies View Related

OpenSUSE Install :: Start / Stop KDE From Command Line (Terminal)?

Jul 10, 2011

How to stop/start KDE from the command line (Terminal) on opensuse 11.4?

View 9 Replies View Related

Ubuntu :: GRUB Command Line Appears On Start Up. YIKES?

Feb 14, 2010

I just booted into Linux and the Update Manager prompted me to restart. After the restart the GRUB interface I expect to see is no longer there and now it is just a command line that says press tab for more options.I have not got a clue with shell language as I have had no time to learn it as of yet. Do I need to uninstall and reinstall Linux or is there a command that can be typed that boots up the operating system.Even better is there something I can do that can return me to seeing the interface like I was used to.

View 3 Replies View Related

Ubuntu :: Stuck On Command Line / No Gui / Unable To Start Xorg?

Apr 2, 2011

Last night my system rebooted and dropped screen resolution to 800*600. I was unable to change that from no where. I tried to install nvidia driver and now no gui, only command line. Starting xorg by using 'startx' fails. How I can get back to normal with normal resolution?At the moment I am logged in via live cd. Let me know if any log files needed (if I can locate those).

View 9 Replies View Related

Software :: Can't Start / Stop / Restart Samba Via Command Line

Oct 12, 2010

I have a GUI for Samba already as it most likely installed, the problem is I don't have a shared folder in admin menu. I have told samba what folder to share and what user to have access to it. As well I have looked at the config file to make sure what was in the gui printed into the config file. However I cannot start, stop, restart samba via command line. I will try config package and hopefully that drops down everything,

[code]...

sudo service smbd restart unrecognized service, nmbd same thing. Now it is installed, but has no script file or the script file is not in the init.d folder like it should be still trying to figure I have come to the conclusion that the daemons are not installed and am trying to figure out what those script files look like or a way to import them off a ftp, however no luck with google so far. But the scripts files don't exist on my box. how do you install samba daemons when it says samba is already installed.

View 7 Replies View Related

CentOS 5 Networking :: Unable To Start Eth1 From The Command Line?

May 28, 2009

I am trying to attach my server to 2 diferent networks, with fixed ip addresses,
eth0 = 192.168.0.2 255.255.255.0 with gateway 192.168.0.1. This is currently working, and I can ssh o the machine on this address

eth1 = 192.168.150.5 255.255.255.0 with gateway 192.168.150.1

When I try and start eth1 with ifconfig eth1 up, I get the error message "eth1: unknown interface: no such device"

I have configured eth1 using system-config-network-tui and /etc/sysconfig/networking/devices/ifcfg-eth1 looks correct

GATEWAY=192.168.150.1
TYPE=Ethernet
DEVICE=eth1
BOOTPROTO=none

[Code].....

View 2 Replies View Related

Programming :: Remove Line Break If Next Line Does Not Start With "PX"?

May 25, 2011

I have a big csv-file wich is not formatted very well. I clean it up with removing a lot of html etc, but some of the lines breaks where they are not supposed to.What I want to do is to check next line, if it starts with 'PX' I don't want to do anything, but if it does not start with 'PX' I want to merge the two lines. That is removing the newline character on line one and replace it with a space.Can this be done with sed? (or maybe with perl or something, but I'm more familiar with sed)I've been looking und the net to find a solution, but to no result.

View 8 Replies View Related

OpenSUSE :: YaST Partitioner Does Not Start - Launch It From Command Line To Get Some Output?

Jun 4, 2011

I have a problem with YaST Partitioner. When I launch it, a window opens, a dialog (to confirm that I know what I am doing) pop-ups, I choose "Yes", the application starts to initialize, and after 0.5-1s the window is closed without any error message. Does anybody know how to at least find out what is wrong? .. or how to launch it from command line to get some output?

View 8 Replies View Related

General :: Command For Appending A Text At The Start Of Every Line And Save It Another File?

Mar 10, 2011

I wish to append a text at the start of every line and save it to another file without changing the original file.know the command

For example:
Orignal.txt
a.txt

[code]...

View 5 Replies View Related

Programming :: SED - Keeping Start Of Line, But Drop The End?

May 3, 2010

I have a script that writes the following type lines to a file. The lines include some html tags. Here is an example:<p>Total = 5</h2></b></center>I want to keep the <p> tag, but remove the ending 3 tags. Sometimes the line can have a 1, 2, or perhaps a 3 digit Total. So I could have a Total = 125.Anyway, after the removal of the ending tags the result would be:<p>Total = 5There are some lines in the file that end with </h2></b></center> that I want to keep. These lines looks generally like this:

<p><b><center><h2>Events Summary for Sun May 02 2010</h2></center></b>

As you can see I am using sed to change the beginning and end of lines to make a very simple web page.The file actually displays ok in a browser with the extra tags on the end, but it is just sloppy work to have these unneeded tags in the output file.

View 2 Replies View Related

CentOS 5 :: Added Gnome And X To Command Line Only Install - How To Make X Start At Boot

Nov 5, 2009

I've got an install of CentOS 5.3 in a VM which was installed without X or Gnome.I've added X (yum groupinstall 'X Window System') and Gnome (yum groupinstall 'GNOME Desktop Environment) and can now run startx no problem.However on boot I get a command line login rather than the graphical login screen one normally gets if Gnome is included at install time.What do I need to do to get the graphical login after boot?

View 3 Replies View Related

Programming :: Tutorial For Using GDB From Command Line?

Sep 15, 2010

Does anyone know from experience a good gdb tutorial, so I can learn to use it from the command line.

View 2 Replies View Related

Ubuntu Networking :: Automate Ifconfig Command?

Nov 8, 2010

I manage to get Ethernet over Firewire working between my Windows XP desktop and my Ubuntu 10.10 laptop.However, I am getting tired of having to manually issue the ifconfig command every time.How can I automate it so that the command is done at bootup?

View 1 Replies View Related

Programming :: Check Command Line For A Word?

May 23, 2010

I'm building a script for my place of employment. The next step in it is checking what the user input was. Determining if they added a part in there or not. The script prompts for a hostname. Hostnames are localhost.localdomain. Now, I want the script to check to see if they put localdomain and if they did, not to add the domain to the /etc/sysconfig/network, but just what they entered. So say the user inputs:

[Code]....

View 4 Replies View Related

Programming :: Making A 1 Command Line Argument?

Jun 8, 2010

I need to write a script that will take 1 command line argument. The argument will be a username. The script will determine if the user exists on the system and will print an error if it does not. If the user does exist it will determine if the user is currently logged in, if the user is not logged in it will determine the last time the user logged in and display the file in the users home directory that was most recently modified.

View 2 Replies View Related

Programming :: Set For A Group Of Command Line Arguments?

Oct 11, 2010

i was wondering if someone could help me figure out a script for global variables i'm trying to set for a group of command line arguments:

basically i'm trying to set: if $# = 3 then i want to search for each all string $1 $2 $3

if $# = 4

then i want to search for each all string $1 $2 $3 $4

View 2 Replies View Related







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