General :: Script Taking Long Time To Execute?
Jan 25, 2011Quote:
#!/bin/ksh
DBcounttry_finalnofunc()
{
[code]....
Quote:
#!/bin/ksh
DBcounttry_finalnofunc()
{
[code]....
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.
in ubuntu 10.04 After logging in t All I had was the wallpaper & my widgets for around a minute, and then the usual upper and lower panels appeared.. didnt had this problem in 9.10
View 4 Replies View Relatedwhile installation of debian 5 from small cd ... does configuring apt take a lot of time!!! installing debian for the first time.
View 1 Replies View RelatedI have just made a clean install of Ubuntu 9.10 and after installing all updates, GDM is taking a long time (about one minute) to come up after a clean boot, resulting in a regular console prompt.
If I issue "sudo service gdm start" it does come up promptly.
What can I do? Where can I see startup logs to try and identify any problems?
I compressed a directory containing many image files. The directory amounted to 5.3gig. Compressed with TAR using .tgz the compression took a couple minutes at most and compressed down to 4.3 gig. Compressed using .bz2 the compression took about 90 minutes and compressed down to 4.2 gig. Hardly worth the extra time. Do these numbers look normal to you?
View 1 Replies View RelatedI don't know if it is just me but it seems like Ubuntu takes a long time to start up programs. For example, it takes me 10 seconds to start up "Ubuntu software center". My computer is a relatively fast one. It has 4 gb of ram and an intel core duo processor. I didn't install that many programs. Does anyone know what might be the source of the problem and how to fix it?
View 6 Replies View RelatedI purchased a special collection boxed Superman set for my 10 year old daughter in May for her birthday and recently some second hand Zumba DVD's. My daughter is quite hard on DVD's. So I have as asked her to wait whilst I have them copied.
I will be using the Zumba regularly and know they will suffer so want use copies and save the originals.
I have done some reading and I think I have everything installed correctly.
I tried K9copy, but it immediately closed. I then tried K3b and noticed I needed 99GB of space. (I wonder if that is why K9copy closed?) The only thing I have that big is my backup external drive.
So I connected it up. I only had about 44 GB of space on it. I ticked for half the tracks which needed less space. So now there was enough space. I then clicked on rip DVD. It has been doing it continuously for 2 nights and is up to 24%.
So at this rate it will take a week to copy half a DVD to my drive and then I have to burn it to a DVD. This can't be right, can it?
I am running OpenSuse 11.3
I am backing up data from a remote server onto a local ntfs partition. It seems that the rm -rf and cp -a commands are taking a long time to complete in what should be short, incremental backups.Has anyone had similar problems when backing up to an ntfs partitionHere is my rsnapshot.conf:
Code:
#################################################
# rsnapshot.conf - rsnapshot configuration file #
[code]....
I am using KVM and created four guest Operating systems on it.The server host is Ubuntu 10.04.I am using 4 websites in a reverse proxy environment.One of our website is running on CentOS VM.Right now there is no traffic on the website static HTML pages.I do not have any clue as why it was taking longer time to be accessed.
View 2 Replies View RelatedIt takes an exceptionally long time for basic graphic actions to occur like switching tabs in Firefox, redrawing windows that have been (un)maximized/minimized, and switching between windows. My video card is not a bad one, a GeForce 9500 GT and Windows handles it just fine. I'm using the current NVIDIA drivers 265.35. It seems like if I can't get some better response time I'll be using Windows much more.
View 3 Replies View RelatedRunning first upgrade after installing 9.10.
Currently on item "Configuring linux-image-2.6.31-20-generic" and the progress bar/terminal readout has not changed for an hour or so I'd say.
Don't want to cause issues by killing it halfway through, especially as it presents an opportunity to learn something!
The find command is taking too long on my machine to complete. When I use time command, I find that sys time and user time are too small as compared to real time. Is my find process not getting scheduled properly?
I interrupted the neverending find command and got the following statistics:
Real time : 5min
Sys time : 1.1 sec
User time : 3 sec
I was running
find / -name ls 2>/dev/null
I have about 200k data entries in xml file. I wrote php script (using php-xml) to read xml file and insert into mysql. At first it went really quickly inserting, then after a while after inserting 100k entries, it slowed right down, just like it would not even doing anything. I have CentOs with 512M on VirtualBox running as server.
View 3 Replies View RelatedI use a long mount command to mount a NAS drive but have to retype it every time I need to mount the drive. Because it is on my laptop I only need to mount the drive from time
View 4 Replies View RelatedI switched to Fedora from Ubuntu about a month ago, and I've been very happy so far. But today I started the upgrade to Fedora 15, and something isn't right. I used the preupgrade method, and the package download took a respectable 30-40 minutes, then I was prompted to reboot my machine. I did so, about 4 hours ago. It took about 2 hours to get to the point where it says it's installing the packages, and 2 hours to get to where it is as I write this, at 116 completed packages out of 1634.
I'm pretty sure this isn't normal for ANY distribution. The machine itself is about 6 months old, so I'm pretty sure it's not a hardware issue. I'm considering interrupting the upgrade and doing a clean install, but I was wondering, is there anything I can do before resorting to the clean install option?
I just want to find out if anybody else is having a similar issue before I start trying to disable services one by one. When I boot in to F15, everything runs fine up to were it starts loading the CUPS module then it hangs for about 2 to 3 minutes, the next thing to load is Samba shares. So it could be either of these or it could have nothing to do with them. Just to add that I made 100% sure that all my samba shares mount fine and are online and have no shares mounting in my fstab file.
View 2 Replies View RelatedI tried to update fedora 15 and it took too long , even the cleaing of packages took too long At the end of the update got the status cleaning up packages that took even longer than the whole update.
View 3 Replies View RelatedI am following this howto to install Apache, MySQL, and PHP5:
[URL]
I have just installed Apache and I am pointing my browser to:
http://192.168.0.100
but I am getting the error message that the server is taking too long to respond.
i have installed ubuntu ultimate edition 10.04 in my toshiba c650 recently,however it is taking too long before it startup. 2 when i log off the cursor still remain untill all power have been discharged. what could be the problem
View 5 Replies View RelatedI'm running Ubuntu 9.10 on a VPS with linode.I run around 10 sites from this vps and whenever I try to do anything thats related at all to email (such as user registration, contact form submission) the process itself can take anywhere from one to five minutes. I realize that this is most likely due to a misconfiguration with how my email has been set up.
View 3 Replies View RelatedI'm having trouble with Vim in any terminal emulator I use. I have a link (vi) to vim. Occasionally it will take very long to load, whether I use 'vi' or 'vi file'. Before, if I could I would restart X, and then it would load instantly again, but I waited this time and it did load, after a minute or so. Is this a problem with X or vim?
View 9 Replies View RelatedI'm having a problem with my mail. When I send mail, it takes a long time for the send to complete.In the below, datestamp is just a simple script to put in a no-white-space date/time stamp.
Code:
$ datestamp ; mail woodnt; datestamp
02-05-10@193844
[code]....
I am changing the password of a truecrypt file container. This takes around 1 minute. Why?
time truecrypt --text --change /tmp/user1.tc --keyfiles= --new-keyfiles= --password=known --new-password=known --random-source=/dev/null"
If I use strace I see that it basically does not do anything: it simply reads lots of random data from /dev/urandom (even if i specified /dev/null as random source) and finally changes the password:
open("/dev/urandom", O_RDONLY) = 6
read(6, "36&{35121221234320234313242312I326235245224300354O)270Q200 201J227224311_212367"..., 640) = 640
close(6) = 0
When booting Fedora 11, my system hangs for a very long time on starting udev. Sometimes I get an I/O error. However, my hardware is fine. I do eventually get in to the system.
View 7 Replies View RelatedIt takes me a while to log in the splash screen just sits there for ages before i get to the desktop. Never used to be this slow and I'm not sure why. Firstly, I'm running Ubuntu 11.04, standard DE. I do have conky starting up in a script but it has the & at the end of the line so I didn't think this would cause it (or is there some special case for log in time on how & is treated?). However as a test I will comment out the line in the script and see if it is the cause.
However just for general knowledge and in case that isn't the problem, how does one go seeing what is happening during the time from when one log's in and the desktop is displayed? Is there some kind of log that shows the date/time that can be enabled or is there a debug mode that can be enabled somehow via special keys or maybe from grub?
While booting Linux it takes ages for 'enabling swap space'
I have allocated swap space twice that of the RAM.
Is there a way to fix it? What should I do to avoid this in the future installs?
Create a file. change its permissions at a specific time. change the permission.
At the moment this is what I have and it changes the permissions of the file but not according to the time specified.
What you do if the job takes a long time to finish and you don't want to wait.Say, I ssh to a remote server from my laptop and start a long-running job. Then few hours later I ssh again and inspect how did job run, its uotput and etc.
View 2 Replies View RelatedWhen i open one of the web browsers i use and try to load a web site it's taking to long to respond and sometimes it doesnt load the website at all. I have tried with firefox,epiphany,opera with all the same results. I am sure that this is not a problem with my internet connection because i don't have these problems with windows.Also the network manager connection settings are correct
I also tried choosing the old kernel(2.6.32.24) to boot from but no success.The problem is the same as if i am using the 2.6.32.25 kernel. The strange thing is that i can download packages from synaptic with full speed. Last think.I have recently downloaded the recommended updates from the update manager but i don't remember what are the things that where updated.