Ubuntu :: Takes Back To The First Script When Use The Exit Command

Oct 3, 2010

I was writing a bash script which attached to another script. The issue I'm having is, when I use the exit command written in the script, it takes me back to the first script. How do I disable this?

View 1 Replies


ADVERTISEMENT

CentOS 5 :: Can't Seem To Save Changes / Exit Screen To Get Back To Command Prompt

Dec 14, 2009

im following a tutorial to setup a dns server, after editing vi etc/sysconfig/syslog, i cant seem to save me changes or exit the screen to get back to a command prompt. have tried to google the answer to no avail, any ideas? also im using putty to ssh, is the answer the same as using the terminal directly?

View 2 Replies View Related

Ubuntu :: When Boot Vista It Takes Back To The Bootloader?

Jan 29, 2010

ok this is going to sound 1/2 retarded

i have a desktop that had had vista on it forever and i decided to install ubuntu on the 10gigs i had free for the longest time so i installed ubuntu but i did a stupid thing in my opinion and installed grubboot loader on the windows partition now when i try to boot vista it takes me back to the bootloader and i need to be able to use both vista(grphicswork) and ubuntu(networking) i cannot loose my vista files by re installing vista

View 2 Replies View Related

Ubuntu :: 10.4 Cannot Shutdown - Takes Back To The Login Screen

Apr 26, 2010

Clean install of 10.4 I select shutdown and it takes me back to the login screen. Trying to shutdown from that screen does the same.

View 9 Replies View Related

Fedora :: When Iogin It Takes Me Back To The Login Screen

Aug 21, 2009

I wanted to try KDE 4.3 on Fedora 11. I enabled the testing repos and updated. However after the update, I restarted and when I login, it takes me back to the login screen. I've tried to login with the gnome desktop and also as other users but it still took me back to the login screen.

View 1 Replies View Related

Programming :: Physical Memory Leaked By User Application Process Is Not Reclaimed Back After Exit?

May 2, 2010

Whenever I'm running my application process, I've 1M physical memory usage is increasing for every 2 hours.This I observed using 'free -m' command.But 'top' command did not showing any increase 'RSS' size.It is same as it was started initially.Even though I stopped my process,the increased memory was not released back. If I start my application process then again memory usage start increasing by 1M for every 2 hours. increase of memory usage observer with 'free' and that too when my application is running, but top command is not showing any change in the RSS sizeIf my application is leaking any memory which is allocated by new/malloc, that should be released back whenever my application exit and the size increase will be show through top command for that process, right? This is not happeningThis proves that there is no potential leaks in my process.But why physical memory is increasing when only my process is running?

View 14 Replies View Related

Fedora :: Compiz Fusion - Every Time Go To Kde Application Launcher It Takes Back To Space 1

Mar 24, 2010

I have updated to FC11 a few months back and after I got my desktop effects going I notice that every time I go to my kde application launcher it takes me back to space 1. I could be in space 6 but as soon as I go to the application launcher to open a new application it takes me back to space 1 and I have to manually move the application to desktop 6. This only happens when compiz fusion is enable...

View 4 Replies View Related

General :: Way To Execute Top Command Once And Exit ?

Jan 6, 2010

Is there a way to execute top command once and exit...i.e. stop refreshing window and continue console without pressing 'q' or 'ctrl+c'...

View 3 Replies View Related

General :: Ssh Exec Command And Exit Session

Jan 13, 2011

is it possible to execute command and terminate session all in one phrase

something like this connect to server hostname and than execute command "ls" and than some command

ssh username"at"hostname ls "something"

without "something" this phrase connects to server and lists directory, I need something that after listing directory, terminates session.

View 1 Replies View Related

Programming :: Filer Doesn't Take Exit Command

Jul 6, 2009

I am trying to write a python script which logs into a NetApp filer and fetches some data. I am using the telnetlib library. Filer does not take exit command. So it expects Control-D. How to send that via python script?

View 5 Replies View Related

Server :: Each Command Takes For Ever To Execute

Sep 12, 2010

I am trying to use a freshly installed kubuntu 10.04.1 LTS and am having major problems with delays in command execution. The box worked fine after installation. I then brought it to the client and it was fine for another day or so. Now, most of the commands I run take up to five minutes to execute. An 'ls' or 'top' will run straight away but and 'ssh','rm' or 'sudo apt-get' will just sit there for ever:

[Code]...

A reboot changed nothing. The shutdown was immediate so 'shutdown' is another command that works properly. The load of the box is '0', I used team viewer to see if I got the same problem from the LAN side rather than the WAN. It's the same. I thought it might have been the disks that had spinned down but it would have sped up after the ssh connection. After further analysis, it looks like this could be an authentication problem. The problem shows once the ssh password is validated and when we use sudo. Could this be related to the installation of samba3?

View 1 Replies View Related

Fedora :: Echo Exit Status After Command Is Run In Terminal?

Feb 19, 2010

command will just execute and exit with a status of "0" -"Every command returns an exit status (sometimes referred to as a return status ). A successful command returns a 0, while an unsuccessful one returns a non-zero value that usually may be interpreted as an error code. Well-behaved UNIX commands, programs, and utilities return a 0 exit code upon successful completion, though there are some exceptions."[URL]With the command . . .

Code:

# dosfsck -v /dev/sdb

it could be very helpful (and decide my next move) to see the exit code as 0, 1, or 2 . the man page suggests the command exit code will specify if the message I get - "Cluster size is zero" (I think it is a "1")is a recoverable or fixable error by the utility. or is non-recoverable - a pretty nifty feature if I understand this right. [URL] is there anything like this script COMMAND_LAST used in the following link. [URL] that can be entered in the terminal window after - or at end of - my dosfsck command or any command. just to see if it has a 0, 1, or 2 status ?

View 2 Replies View Related

General :: X Window KDE Logout / Exit From KDE And Go To Command Line?

Mar 28, 2010

every time I logout from Xwindow KDE, it doesn't redirect me to Linux command line, instead it was halted without the machine being shut down. How can I exit from KDE and go to Linux command line?

View 10 Replies View Related

General :: Debugger For Shell Script - Get Rid Of Multiple Exit Command ?

Jun 14, 2010

My two doubts:

(i) In office i open many terminal windows when i start my day and in each terminal i keep on login as different users many times in a day to do some task, by the end of the day when i need to exit from all terminals in a safeway instead of directly closing it i need to execute exit command or CTRL+D many times to close a single terminal safely. Can anybody tell me a way to exit from each terminal in single go, is there any command to acheive this ? I wish if we had a command like exitall like in vi we have :qa command to close multiple files opened in single window. I hope friends you have got what i am asking for ?

(ii) I want a software for debugging shellscripts searched a lot but dint got it.

View 7 Replies View Related

General :: Shell Command Equivalent To (Ctrl+C) To Exit From A Process?

Apr 1, 2011

I write a script to read a file which is something like a pipe (or) queue , which shows the running status.In normal case, if i open this file with cat command, i have to use ctrl+c to exit this . What command shall i use to do the same inside a shell script ? I have tried ^C in my script , but it does not exit the process.

View 6 Replies View Related

OpenSUSE :: Command (du) To Find Out How Much Space A Directory Takes Up?

Jul 10, 2010

I learned a little bit about this command (du) to find out how much space a directory takes up but what I want to know is can you tell it to exclude directories?For instance, I wanted to know how large the / directory is on my old suse10 drive but I want to exclude /home (/home was not a separate partition on that drive).

View 4 Replies View Related

Slackware :: Command To Know How Much Disk Space A Package Takes

Mar 12, 2010

What's the command to know how much disk space a specific package takes?

View 5 Replies View Related

Programming :: Exit In Script Files Cause Konsole Terminal Itself To Exit?

Apr 11, 2010

I noticed that if I have "exit" in a bash script file., e.g. script.sh,that when the word "exit" is reached, and the script file being executed is not in the PATH nvironment, i.e. ". script.sh", the whole konsole shell profile is exited! What gives here? Is there another command compatible to "exit" to prevent this, or will I just have the leave the "." part in the PATH enviroment, which is, to my understanding, is not recommended? I desire for a "goto" function in bash script files

View 11 Replies View Related

Programming :: Write A Script StoredList That Takes Two Command Line Parameters?

Nov 28, 2010

This is the following exercise:Adapt this to write a script storedList that takes two command line parameters. The first parameter is the name of a directory, the second parameter is the name of a directory should be store i.e# ./storeList.sh /etc etcFilesListHow can you refer to the variables that represent the words passed in on the command line?

My Script's file:
#!/bin/bash
if test $# == 2

[code]...

View 4 Replies View Related

Programming :: Why New Threads Exit When Main Thread Exit

May 22, 2010

In linux, creating thread is same as process (clone()), except the virtual address space gets shared with the parent.If a running main process(thread) creates new thread, and if main thread exits, why should the new thread too exit? both are different entities, The same doesn't happen if the child thread exits, the parent thread would be alive.

View 1 Replies View Related

General :: Write Shell Script That Takes A File Path As Command-line Arguments?

Dec 14, 2010

How can i write a shell script that takes a file path as command-line arguments.and it should report whether the path denotes a file or a directory.

View 2 Replies View Related

Ubuntu :: Save The Changes And Go Back To The Main Command?

Feb 22, 2010

I had make changes on the following text in Ubuntu terminal, how can I save the changes and go back to the main command?

<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /home/support/sohai

[code]....

View 1 Replies View Related

Ubuntu Servers :: Can't Get Back To Command Line

May 8, 2011

I had some trouble before getting to install Webmin on my nas from the command line in Ubuntu Server So I wanted to temporary install a gui and used kde. Downloaded it via the browser.Now I got webmin running and tried to remove KDE again. Some things were removed but the inlog screen is still there, and now it looks more like a gnome interface when I logged on.How can I remove the GUI completely again?

View 1 Replies View Related

Ubuntu :: Use Cpio Command For Back Up Files?

Feb 14, 2011

I want to use cpio command for back up my files. but I cant understand what's the meaning of -p in this command. pass through?

View 2 Replies View Related

Networking :: Net Command Gone / Get That Back?

Dec 27, 2010

I have been using the net command for a while now to remotely shutdown my windows machine, I believe that it comes with the samba package.
"net rpc shutdown -f -I IP_ADDRESS -U USERNAME%PASSWORD"

I run a Ubuntu 10.10 x86 Netbook edition computer, and have recently updated my software because my computer asked me to and the net command recently stopped working so I assume this is the cause.
It was simply saying that the net command did not exist, but after playing around installing packages I installed samba4 and got it recognizing the command net. But it no longer works the same and does not support "rpc shutdown" nor does it appear to have any replacement for it.

Was the command simply depreciated? if so how can I stop this from happening again, I use net all the time and am not happy that it would disappear without warning.

Can I get the command back somehow, or do any of your have a replacement?

View 2 Replies View Related

Ubuntu :: Lost BOTH Panels / Command Line Instructions To Get Them Back?

Mar 26, 2009

I tried a program called BarPanel, which replaces the Gnome Panels. The installation instructions told me to download the program installer (the program installs automatically for Debian/Ubuntu users). Then I had to go to System > Preferences > Sessions to remove the gnome-panel entry and add the BarPanel one. So far so good. On re-starting, the new panels were installed to my desk top in bright green! The problem was that a lot of the icons don't work. The action menu does nothing and there is no entry for Sessions in the System menu, so I can't go back and undo. I have re-installed gnome-panel under Synaptic, without any success. I un-installed BarPanel, so I now don't have any panels at all now! One good thing is that I have Cairo-dock on my desktop, so I have access to several programs, including the terminal.

Can someone out there give me the command line instructions to get the gnome panels back.

View 2 Replies View Related

Ubuntu :: Accidently Hit This Command Inside My /var/www Folder - Recover My Files Back?

Feb 27, 2010

i accidently hit this command inside my /var/www folder. im screwed big time.I need to recover my files back. is there any chance ?

View 1 Replies View Related

CentOS 5 :: X/Gnome Takes Long Time To Load And Sudo Takes Long Time To Execute

Oct 13, 2009

I am running Centos 5.3. I ran no updates, performed no installs, nor changed any configuration immediately prior to this issue. My problem is this: when I run the command startx (default runlevel 3), it is a long time (5-10 minutes) before Gnome startx, and once it does start applications will not run. Also, when I try to use sudo (from any environment, even ssh), it is a long time (5-10) before the command is executed.

I cannot say for sure, but it seems like this is an intermittent problem. Sometimes X takes a long time to start, but once it starts it will launch programs. Sometimes X takes a long time to launch, but once it starts it will only launch certain programs. Though presently X always takes a long time to start, and I cannot successfully launch any programs.

A while back a had a similar problem to this (x taking long time to start, sudo taking long time to execute) and it ended up being a DNS problem. Unfortunately, I cannot remember exactly what it was and I stupidly did not document it. Maybe this is also DNS related, I don't know.

I don't know what log files to look at for problems with X, Gnome, and sudo taking a long time to start.

View 19 Replies View Related

General :: Use Cd Command To Navigate Back And Forward (like Browser)?

Sep 6, 2011

Is it possible to use cd command to navigate back and forward (like browser)?. Something similar to cd - but it only swaps current and last location. I know I can push dir on stack, it would be great to use cd -> and cd <-, though.

View 3 Replies View Related

General :: Finding A Command For Going Back A Number Of Steps In A Directory Without Using Cd?

May 10, 2011

I'm constantly going 'cd ../../../../'. Is there a command/alias that could let me go 'cmd 4' and I'd be taken back 4 directories?

View 8 Replies View Related







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