General :: Incrimental Counter - Reaches Its Value Of 10 To Reset To Zero
Jun 23, 2010
i am just starting a ubuntu server and i am trying to learn i have a script that runs ever hour and i would like to put a counter (count=count+) in a line if it is true and also if the counter reaches its value of 10 to reset the counter to zero
View 3 Replies
ADVERTISEMENT
Dec 3, 2010
I am executing the following script using 'awk -f process.awk out' where 'out' is the input file which consists of 5000 sequences. Each time it takes one sequence, run the below program by creating a directory, run the mfold command within that directory, running another shell script 'final5' and redirect the output to a file from final5 shell. After that the directory is deleted, taking second sequence from 'out' and repeating this process. It is working well upto 1020 directories. From 1021 it is giving error. After executing this 1000 times, can we reset the counter to 1 in such a way it takes it as directory 1 and start this process for 1001 to 2000 sequences. Similarly I have to reset the counter to five times because input file contains 5000 seqeunces.
[Code]...
View 2 Replies
View Related
Mar 19, 2011
I have written a script.
#/bin/bash
a=`du -sh /root/samplefolder | cut -f1`
echo $a > testfile
[code]....
The aim of this script is, when the folder reaches 20M then attributes will be set to that particular folder so that no newfiles and folders cannot be created or copied to that samplefolder. whenever i copy a file morethan 20M to that folder its getting copied fully and then the attributes were applied. But i dont want this to happen, when the folder reaches its maximum current write operation to that folder should be stopped automatically with a error.
View 5 Replies
View Related
Aug 4, 2011
how to create a script when my mailqueue (mqueue) folder size reaches 1GB and sent email alert to my email id.
Once mqueue folder size reaches the sent alert by mail. Because everytime my mqueue folder size increasing.
View 3 Replies
View Related
Jul 7, 2011
As stated in previous posts I've not long come back to linux, I was wondering if anyone can suggest a good lightweight download usage meter to help track how much of my monthly allowance I have used etc.Under windows I was using one that logged into the Bigpond site and would display usage, how much was left and how many days were left till the end of the billing period.I've done some searching but so far can't find anything similar for linux.
View 2 Replies
View Related
Jun 3, 2011
I'm unable to reset using either the reset option in gnome shell or the command using a terminal. When I select it the shell exits and displays the graphic "exploding" and then it just sits there. Shutdown works fine; just no reset. Any ideas? I've installed from the DVD. I booted the live CD and it resets just fine so I know it's no my hardware
View 1 Replies
View Related
Mar 19, 2010
Here is the program for Linux machine. GOAL: User will get notify via email when any File System reaches 90% or over 90% of its used space. User will notify as below:
Filesystem: /bkup
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/backup-BKUP
14G 12G 1.3G 91% /bkup
Large Files:
/bkup/prtlprd6_bk20100312_aft2ndjcr.xml
[Code]....
View 1 Replies
View Related
Jan 15, 2010
I tried to test Ubuntu on my dekstop, an HP Pavilion a6223w with an ATI Radeon HD 2400 but as soon as the live CD reaches the desktop, it hangs, no errors, and from what I can tell it isn't running on any restricted drivers. Is ubuntu not compatible with my PC or something? Here's my full spec's:
AMD Athlon 64 x2 5200+ 2.6GHZ
ECS Nettle2 Mobo with Nvidia nforce 4 chipset and Nvidia 6150SE integrated graphics
3GBs DDR2 5300 RAM @ 667 mhz
500GB Sata HD 7200rpm
ATI Radeon HD 2400 Pro PCIe x16
HP Multimedia Keyboard and Logitech USB Optical Mouse
Realtek Onboard HD Audio
I tested it with the latest version of Ubuntu (9.10)
View 4 Replies
View Related
Apr 14, 2010
I don't know if this is related to a problem I have run into and posted elsewhere regarding 2 (or more) ethernet ports. But I encountered this while trying to solve the other problem (which I thought was Linux not setting correct routes for 2 interfaces). As suggested by someone when trying to solve the other problem, I switched to using the same IP address (it's a secondary address) on BOTH interfaces. So thus I have configured 172.30.0.13 on both eth0:1 and eth1:1. I am running the NSD program (an authoritative-only name server) listening on port 53 of 172.30.0.13. Some computers are getting the MAC address of eth0 for their ARP requests. Others are getting the MAC address of eth1 for their ARP requests. So this is determining which ethernet port their DNS queries will arrive on.
Those that send their DNS queries to the eth0 MAC address work fine. The NSD process gets the requests and answers them. The answers get back to where the query was sent from. HOWEVER ... those that send their DNS queries to the eth1 MAC address do not work. Using tcpdump, I see that the queries actually do arrive on the server. Using strace, I see that the NSD process never gets them. There are no iptables in effect.
Any idea why the kernel is deciding to not deliver the DNS query UDP datagram to the NSD process? It sure seems that the kernel just doesn't handle more than 1 ethernet interface (at least in the same subnet) correctly. IMHO, when an ARP request is received on 2 or more different interfaces, it should at least answer on both, each answer with the respective MAC address of that interface. It cannot know, and should not assume, any specific physical topology of the network beyond those interfaces.
View 1 Replies
View Related
Nov 1, 2010
I am using ubuntu karmic kola 9.10. The problem I have been having lately is of overheating of my intel core2duo proc, where the temp reaches around 80-90 degrees and the cpu shuts down after a while and the message from the bios is of thermal trip. Ideally my cpus temp is around 55 deg,the moment when the temp starts to climb and when I run a top command, I see arpwatch taking 100 % of cpu. After googling I came across this.
Code:
[URL]. How can a process which is taking 100 % cpu cause a system to over heat and shutdown in few mins? I have had seen instances where processes taking a lot of cpu but not something like this.
ryan@wsx04:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=9.10
DISTRIB_CODENAME=karmic
DISTRIB_DESCRIPTION="Ubuntu 9.10"
Code:
ryan@wsx04:~$ dpkg -s arpwatch
Package: arpwatch
Status: install ok installed
Priority: optional
Section: admin
Installed-Size: 468
Maintainer: Ubuntu MOTU Developers <ubuntu-motu@lists.ubuntu.com>
Architecture: amd64
Version: 2.1a13-2.1
Code:
ryan@wsx04:~$ sa | grep -i arpwatch
4 292.10re 2.06cp 0avio 5176k arpwatch*
View 2 Replies
View Related
Jun 5, 2010
upgrading my notebook from Slackware 13.0 to 13.1. There are always some tricky things to wrap around when such upgrade times come, but now I think I caught a bug in mkinitrd, if I'm not wrong. mkinitd doesn't return when I run:
[code]...
After some debugging, I found that the routine copy-libs() is stuck in an infinite loop, because the statement "while [ "$COUNT" != "0" ]; do" does hold always (that is, COUNT never reaches zero). This, by its side, happens because the set of libs whose dependencies should be checked against are regenerated integrally after each step, and the algorithm doesn't converge. I could fix the problem adding some code, which removes the libraries found in the iteration "i-1" from the list of files found in the iteration "i". A patch in provided below. This done, I could build my first initrd image for Slack 13.1 and put it to run with kernel 2.6.33.4.
[code]...
View 11 Replies
View Related
Jun 10, 2010
I have the computer hooked up to a TV via HDMI. The resolution of the booting process is set to 1280x720, and then KDM goes to the correct 1360x768.
Sometimes when I boot, the TV does not receive a signal until the boot stage reaches the KDM. I do not know how to reproduce this exactly.
View 3 Replies
View Related
May 10, 2010
I have looked high and low for this, but to no avail. I am looking for a script to shutdown my computer when it reaches a specific time (say 10:00). I know about the shutdown command but if I use that I cannot shutdown my computer manually. I would like to be able to shutdown manually AND automatically.
View 5 Replies
View Related
Aug 19, 2015
After installing the latest upgrades in Testing, KDE will no longer start. After logging in, the progress bar reaches about 80% and then stops. At this point the system is unresponsive, and I have to switch to another VT to reboot.
For the moment I'm using XFCE.
View 14 Replies
View Related
Nov 13, 2009
i have fedora11 in my system i have tried to install to counter strike in my system.and it get proper way. but when i start it , it starts well but it gets freezes after Parsing Game resources Bar(status ) bar during loading and a error generated that my gecko installer wants to install html parser
now what to do?
View 1 Replies
View Related
Oct 24, 2010
is it possible in C to use a counter as part of a variable name?
View 2 Replies
View Related
May 19, 2009
For the first time, I booted up a Kubuntu live CD on a laptop (850 MHz, 40 GB HD, 256 MB RAM). Earlier releases (< 9.04) boot up fine but it does not. It hangs up right on the splash screen and I can view nothing but a blinking cursor on the console screen. The screen hangs when the loader reaches about 10% in the blue bar. No further information can be provided when there is just a blinking cursor at the console. The CPU shows no activity. The CD boots up fine on other computer. How do I go on installing Kubuntu? Is it a good option to use the Ubuntu Server CD and install all the Kubuntu desktop software on it once it is installed (Server edition is not live disk, and I do not have an alternate install CD)?
View 1 Replies
View Related
Mar 20, 2011
In the older version of firefox the tabs are right above the browser window. In this version there in the wrong place. It's counter-intuitive to not have it right above the browser window. How do put it back? Else, how do install the older firefox.
View 3 Replies
View Related
Jun 3, 2010
I setup the server just find with Metamod and amxmodx, everything works other than it won't let my server connect outside of my lan. I forwarded every single necessary port for HLDS and steam on my DIR-655 xtreme n-gigabit router, most up to date firmware as well.
I've tried numerous ways of of starting up my server
Here is what happens:
Code:
Heres another, I try connecting with just a port and it runs but its only on local, in the servers list the ip is 192.168.0.192:
Code:
View 9 Replies
View Related
Jul 6, 2010
I have a linux router box with ubuntu which routes internet for several people. There is no extra traffic shaping, so everybody can get the whole bandwidth when its free. What I would like to have is a real time traffic counter per ip, just like a program called "iptraf" but on a per-ip basis. Iptraf can only count on a per-connection basis and thus cannot display a bandwidth that a certain ip has taken (because a single ip can start several onnections). So a console program with text interface like iptraf would be perfect - does anybody know about such a program? After some googling I came to the conclusion that such a program does not exist (which must be wrong - i think that per-ip real time traffic flow information is the first thing every router owner would like to know).
View 2 Replies
View Related
Jan 16, 2011
First of all, This is my first post in the forums, so - Hello all, nice to meet you. This is my first time with Ubuntu, and so, ran into a lot of problems. This problem is in installing counter strike. I know that there are a lot of guides and FAQ's online that give you lots of help on that, but I ran into an unique problem.
I installed the non-steam version of Counter Strike ( using wine ofcourse ). It created a shortcut in my desktop and I launch the counter strike game. I enter my cd key and then I select a profile, select a map, select the bots and then, it starts loading. After that, it stops half way and then it quits.
View 1 Replies
View Related
Jan 24, 2011
I'm building my first server to use as a Counter Strike: Source game server that I'm hoping will host 24-48 players. I plan on using Ubuntu Server 10.04 64bit. I also plan on using it as my own personal file server. I'm looking at building it with the Intel Xeon E3110 3.0GHz, 1333MHz, Wolfdale, dual-core processor (LGA 775) as it's cheap and from what I've read, should fit my needs.
Initially I want to build the server with a single SSD drive just to get the system up and running and then later I wanna add another SSD to mirror the original with RAID 1. Then I want to add 4 large capacity SATA drives in a RAID 10 for storage (after I've gotten everything else set up).
Can anyone recommend a motherboard that will fit this setup? I'd really like a motherboard that has built in VGA graphics so I don't have to buy a graphics card just for the install (as I plan on using SSH after I get it up and running). I don't plan on using ECC memory as I need the memory to be fast (for the game server). Because this is my first build, I'm very new to installing/setting up RAID. Do any motherboards exist that have a built-in hardware RAID that will work with Ubuntu and let me do raid 1 and raid 10? Or will I have to get a SATA RAID card? Will hardware based RAID allow me to build a raid 1 array with a SSD drive that's already in use (my system drive) without having to reformat/re-partition?
View 9 Replies
View Related
May 19, 2011
Whenever I add a rule to iptables, all of the policy counters reset. The counters for each individual rule remain intact, however, the main counter resets. Here's what I mean:
Code:
[root] ~ # iptables -vL
Chain INPUT (policy ACCEPT 65M packets, 83G bytes)
pkts bytes target prot opt in out source destination
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 50M packets, 30G bytes)
pkts bytes target prot opt in out source destination .....
View 2 Replies
View Related
Mar 12, 2010
I'm converting pages in PDF to images in the following way: convert file.pdf out.jpg In this way I get in the current dir files with these names: out-0.jpg (first page), out-1.jpg (second page), out-2.jpg (third page) and so on. You can see the increment counter begins at 0. Can it be done to begin at 1, so I would get these names: out-1.jpg (first page), out-2.jpg (second page), out-3.jpg (third page)?
View 1 Replies
View Related
Sep 5, 2010
i'm running 11.2 kde 4.3. i'm having issues with both smplayer and vlc. first, when i play an audio cd through smplayer, it pauses every 14-15 second. by pause i mean that the sound and time counter stops, and i actually hear the disc drive make a sound, the *typical disc-read sound. i tried a few discs, in case it was a specific cd; same thing for all. i also looked through the preferences to see if there was a setting that addressed it; nothing i see seems to address the issue.
playing the same cds in kscd works fine. but kscd really sucks....excuse me, it really really sucks. with vlc, whenever i start vlc, it will appear in my taskbar, but there is no other sign of its existence besides this. no system tray icon, no gui or any other sign of its presence besides the taskbar.
View 6 Replies
View Related
Jan 13, 2010
I would like to share some files with my customers. I would like to be able to give them different passwords with different rights. I would like to know which customers have downloaded the files, how many times and from wich ip. I would like to let the customer download a file just a number of times.(optional) I would like to be able to upload from web (optional) And with a polite presentation to the customer.Does it exists? Yes. I'm asking for something better and I hope somebody used it and is still happy with it.
View 2 Replies
View Related
Apr 2, 2010
my friend is having major sound problems when she is trying to play counter strike 1.6 on her ubuntu (latest version). she can only play it trough wine emulator and wine itself is updated to latest version.
from what she told me and i seen - most of the times she doesn't have sound at all. can you maybe point me on what should we do about it? i googled some "solutions" like disabling oss and etc. but it doesn't make any difference (killall pulseaudio for example removes all of her sound like videos sound and etc.).
View 2 Replies
View Related
Feb 2, 2011
I work in a simulations environment. I'm trying to write a bash script that will read fields from a .csv file into an array, the first field being an identifiyng number and the second field being a corresponding url. There are about 1600 of these number/url combinations in the .csv file that i'm reading from. Once that is done i want it to parse a text file and match the number, when it has a match i want it to enter the corresponding url into a particular line in the text file. The script I have written (with the help of the people on this forum a while back) does this well, but now I have a lot more data to parse. I think the script itself is explanatory enough to see what i'm doing. What i would like to do is cut it down to one while loop nested inside another loop so that I don't have 1600 or so elif statements. I can't figure out how to increment the output of the array. for instance, the first cycle would find the number that matches ${record1[2]} and input the url stored in ${record1[3]}. the next cycle would match ${record1[4]} and input the url in ${record1[5]}, and so on, does that make sense? The code is below and a sample .csv and text file are attached.
[Code]...
View 14 Replies
View Related
Jul 15, 2009
I can't connect to my "counter-strike Source server". I know it is running, as I run it thru SCREEN and no connections seems to reach it. I use a small modified script I found some where on this site and it is like this;I do believe the problem is in my use of ipatbles and UDp but haven't found any use of the command that has worked.
View 2 Replies
View Related
Feb 2, 2010
Did anyone heard about or can suggest mabe a postfix serverside solution in order to insert a counter number into the subject line before the message is sent?
I mean something similar with helpdesk tickets, because I would like to create the possibility for the senders, to make further refference about a speciffic message using it's counter number provided by postfix server.
View 5 Replies
View Related