Ubuntu :: SSH Not Releasing Terminal After Command Is Executed?

Sep 7, 2010

When I run the following command from my macbook to my ubuntu server the terminal does not get released. It just sits there until I Control-C the command.

Code:
ssh user@my-server 'sudo /etc/init.d/nginx start'

When i login and then run the command everything works fine.

Code:
ssh user@my-server
sudo /etc/init.d/nginx start

[Code]....

View 1 Replies


ADVERTISEMENT

Ubuntu Installation :: Commands Are Not Working In Terminal / Command Is Not Executed?

Jul 19, 2010

I am working on Ubuntu 9.10.Since last two days there is issue while working with Terminal.Whenever I type a command and press enter it doesnt do anything. command is not executed. I guess its in loop. when I press Ctrl+C then it comes out of loop. this happens with all commands and I am not sure what is the problem.I have reinstalled Terminal but it did not worked.

View 8 Replies View Related

General :: Set Up New Keybinding For Finding Last Command Executed Using The First Few Characters Of The Command In Csh?

Jul 21, 2010

I want to be able to use Ctrl+R to have reverse-i search. Also if I press Shift+Up Arrow after typing the first few characters of a recently executed command then the shell should complete the command by finding the most recent commmand having the same first few characters.

View 1 Replies View Related

Ubuntu Networking :: Tor Executed From Terminal Works But Not From GUI

Apr 1, 2011

I am using Tor 0.2.1.30 with Polipo and Vidalia 0.1.15, Ubuntu 10.04. Running tor on terminal works fine, but vidalia gets stuck at 85% The message log, as I understand it, shows it getting stuck at finding the right bridges, but the terminal tor is able to connect fine... ##This is what the vidalia log looks like. The log shows me trying it two times. Apr 02 01:32:56.698 [Notice] Tor v0.2.1.30. This is experimental software. Do not rely on it for strong anonymity. (Running on Linux i686)

Apr 02 01:32:56.699 [Notice] Initialized libevent version 1.4.13-stable using method epoll. Good.
Apr 02 01:32:56.699 [Notice] Opening Socks listener on 127.0.0.1:9050
Apr 02 01:32:56.699 [Notice] Opening Control listener on 127.0.0.1:9051
Apr 02 01:32:56.699 [Notice] Parsing GEOIP file.
Apr 02 01:53:08.204 [Notice] Have tried resolving or connecting to address '[scrubbed]' at 3 different places. Giving up.
[Code]....

View 1 Replies View Related

General :: Gnome-terminal/bash - Cancel Inserted Commands That Will Be Executed Later?

Mar 13, 2011

$ execute_some_long_command <command is executing> <Accidently press middle button that inserts bunch of garbage (including, for example, `rm -Rf ~/*`) into console>

How to let execute_some_long_command finish, but not execute inserted things?

View 1 Replies View Related

General :: Writing Command Executed Into Logfile?

Jun 7, 2011

Currently we are using Unix machine & the activity are logged in the file using following code used in profile

.profile code

# /ln/aud_root/dds_ibm/.profile
trap 'print "not allowed"' INT
trap 'print "not allowed"' QUIT
trap 'print "not allowed"' TSTP

[Code].....

View 2 Replies View Related

Software :: Read Command Not Executed In Script

Nov 2, 2010

I have a read command in the following script, but it does not get executed when I run the script. What's wrong with the read statement?

View 3 Replies View Related

General :: History With Date And Executed File/command?

Feb 17, 2011

what is the tool to get the history inclduing the user name,command time and from which file/folder the command is executed.

View 1 Replies View Related

General :: Variable Storing The Previously Executed Command?

May 23, 2010

I want to use PROMPT_COMMAND variable to build a history of all the commands i execute. So Basically i want to append the last executed command to my own command log file. How can i find the last executed command ?

I want to add PROMPT_COMMAND="echo $last_executed_command >> my_command_log" But I am not sure how to find the last executed command

View 2 Replies View Related

Security :: Permissions For Chown - Command Executed By Root Only

Feb 22, 2010

Inspite of having 755 permissions on the chown command, it seems the command can be executed by the root only. I was under the impression that the 'x' permission for 'others' can give executable rights to the normal user too, which does not seem to be the case here. Just curious to know, if not the file perms itself, what controls the execution of the command?

View 6 Replies View Related

Software :: At Command Fails \ Intention Is To Get Itself Executed Every Minute?

Mar 31, 2011

Here is my script for at command. The intention is to get itself executed every minute.

Code:
logfile=/tmp/attest.log
loginterval=1

[code]....

View 4 Replies View Related

General :: Pass Option To LILO In Order To Have Script / Command Executed At / After Boot

Aug 28, 2009

I have one distro installed, LILO as the boot loader, and i wonder if it's possible to duplicate the lilo entries with an option which executes some script or command during, or after the boot.Actually, i installed a Slackware + autolaunching virtual machine, but i have two VM, so i need to autolaunch one of them. May i choose it from the very beginning ?

View 9 Replies View Related

OpenSUSE :: Broadcom Releasing Open Source Drivers

Sep 9, 2010

any idea if openSUSE will be able to get this into 11.4?Broadcom swims upstream, tackles Linux WiFi woes with new open drivers

View 1 Replies View Related

OpenSUSE :: Releasing Usb Port From Linux Host To Windows Xp Vm Guest

Mar 31, 2011

I am trying to connect an ipad to a windows xp virtual machine running in a linux (opensuse) host machine. VMWare reports that usbmuxd running on the host machine (opensuse) must first release the usb port so that vmware can open it in the guest (XP) vm. VMWare knows that I have physically connected an ipad and when I click "Connect" reports the error and then displays the port as "Connected" although according to ITunes diagnostics there is no such connection. I have the same problem connecting a usb flash drive to the guest vm. Is there a way I can manually disconnect the port from the opensuse host?

View 2 Replies View Related

General :: "ps" Command Not Executed In Script When Using Crontab

Jun 4, 2011

I wrote a simple script to see if firefox is running. However, the ps command is not executed, when I open the logfile I see: "DEBUG LINE 4" and not DEBUG LINE 5, so "ps -e" is never executed despite using the full path of the ps command.

Here is my script:

#!/bin/bash -l
# simple script to test if firefox is running...
PS=/usr/bin/ps echo "DEBUG $LINENO"
$PS -e | fgrep firefox echo "DEBUG LINE $LINENO"

View 6 Replies View Related

Ubuntu :: Command For "Open A Terminal Window And Run Application In This Terminal ?

Aug 8, 2010

What is the command for "Open a terminal window and run application in this terminal

View 4 Replies View Related

General :: Make Linux Terminal Transparent With Terminal Command?

May 10, 2010

Is it possible to make terminal (xfce4-terminal) transparent from bash script?

Maybe by enabling compostion?

View 1 Replies View Related

Ubuntu :: Is Command Line Invocation Of Gnome-terminal To Run More Than One Command

Feb 17, 2010

how to pass something 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

[code]....

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 1 Replies View Related

Server :: When Executed Last Command Its Showing System Ip Logged In Time And Logged Out Time The Output?

Feb 27, 2011

logging in a server through putty in the same network when i executed last command its showing system ip logged in time and logged out time the output as followsthis is my system
oot pts1 xx.xx.xx day month date time in time out timeand similarly am geeting other than this likeroot :0day month date time still logged in this is from more than 3 days its logged in

View 2 Replies View Related

General :: Append Command Output To File By Giving Command In Terminal?

Jul 3, 2009

I am using openSUSE 10.3.When I install software from tarball then to record time required I send output of date to beg.txt(when installation begins) and end.txt (when installation finishes).How can I append output of date to a file so I don't need two files?

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

General :: Apache Command And Terminal / Command With Apache Through Web Browser And It Is Not Working?

Aug 18, 2009

I want to run a linux command with apache through web browser and that's is not working. and it's working properly when I execute this command through terminal, where is the problem?

NOTE: apache have the privileges to execute the command

View 7 Replies View Related

Ubuntu :: Use The Dd Command From Terminal?

Mar 12, 2010

trying to use the dd command from terminal but having a problem cant get the vertical line needed in the command ( | ) ( did this one from character map ) in a winhosed system

View 3 Replies View Related

Ubuntu :: Where To Run The Command On The Terminal

Aug 26, 2010

I've already install the GTK+ library development files (libgtk2.0-dev) but I don't understand the following instructions:Then to compile the Equinox engine, extract the corresponding archive in your home folder. In the new directory, run the following commands: ./configure --prefix=/usr --enable-animationmakeWhat is the corresponding archive? Where do I run the command? On the terminal?

View 1 Replies View Related

Ubuntu :: Run Command In Terminal On Startup

Jan 8, 2010

I know how to make things run at startup, and obviously know how to run a command in terminal (type and enter... duhhhh). However I would like to be able to run vnstat in terminal when my computer logs in, this is very handy for seeing how much I have downloaded. I have a terminal embedded on the desktop and would very much like to run vnstat in it for me when it starts, I know I could just type in vnstat when I've logged on, but where is the fun in that? Just having it already there for me would be far better.

The command for starting my desktop terminal is as follows:
Code:
gnome-terminal --window-with-profile=trans --geometry 90x40+280+30

View 2 Replies View Related

Ubuntu :: Get A Terminal Command In Start Up?

Jan 9, 2010

I want to add an item to my start up... I went to start up and hit add. I want my conky to start up... I need a terminal and the code conky that should start it how do you get a terminal command in start up.?

View 2 Replies View Related

Ubuntu :: Won't Let Me Use The Sudo Command In Terminal ?

Feb 27, 2010

Ubuntu won't let me use the sudo command in terminal. If I try, sudo: must be setuid root pops up. Also, if I try any tasks that require permission, the authentication box pops up and then disappears within one second.

View 9 Replies View Related

Ubuntu :: How To Run Terminal Command At Startup

Aug 25, 2010

I know this has been asked a 1000 times, but none of the solutions I've read so far work.I need to run the following terminal command every time Ubuntu (10.04 64bit) starts:Code:xset m 9 1This boosts mouse speed to maximum. I don't know why, but it is the only thing that works. All built-in mouse settings are at maximum, yet my mouse crawls across the screen when Ubu starts. So far, I have tried:Creating a startup script called "/etc/init.d/autorun.sh" containing code...

View 9 Replies View Related

Ubuntu :: Command Not Found When Using Terminal?

Aug 25, 2010

just bought two new monitors , having major problems installing them,ubuntu 10.04 didnt recognize them at all running at 800x600 they should run at 1920x1080.
i have found various web pages explaining how to adjust the resolution using terminal . the problem i am having that nearly every command i put in commes back with command not found , i thought i needed to be signed in asroot so did this but still the same problem .

View 5 Replies View Related

Ubuntu :: Send Command To Another Terminal?

Sep 10, 2010

I open up 2 xterms on my desktop, A(/dev/pts/0) and B(/dev/pts/1).

I can write from A to B using redirection e.g. echo "test" > /dev/pts/1

How do I run a command from A on B? e.g. "clear"

Ideally I should be able to do this from a script.

View 7 Replies View Related







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