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?
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?
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
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.
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?
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...
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?
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?
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 ?
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?
(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.
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.
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).
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
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?
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.
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?
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?
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.
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.
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.