General :: Reset The Counter In Shell Script?

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


ADVERTISEMENT

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

Fedora :: Unable To Reset Using Either The Reset Option In Gnome Shell Or The Command Using A Terminal?

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

General :: Download Usage Counter (meter) Ubuntu 11.04

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

General :: $HOME/.bashrc Disabled When User Shell Is 'rbash' (restricted Shell)?

Jun 15, 2011

MACHINE: HP Proliant DL260G5OS: SLES 11 SP1kernel: Linux xserver 2.6.32.12-0.7-default #1 SMP 2010-05-20 11:14:20 +0200 x86_64 x86_64 x86_64 GNU/LinuxIt is used as remote xserver in a LAN.I have configured /usr/lib/restricted/bin/.rbashrc with some environment variables but when the users logon in the system finally is executed $HOME/.bashrc and some environment vars are overwritten.

View 2 Replies View Related

Fedora :: Counter Strike In Wine?

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

Programming :: Counter As Part Of Variablename In C?

Oct 24, 2010

is it possible in C to use a counter as part of a variable name?

View 2 Replies View Related

General :: Write A Shell Script Instead Of Shell Function?

Apr 27, 2011

I would like know when it is necessary or advisable to write a shell script instead of shell function ?

View 3 Replies View Related

OpenSUSE :: Counter-intuitive Do Not Have It Right Above The Browser Window?

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

Ubuntu :: HLDS - Counter Strike 1.6 Server On - 10.04

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

Networking :: Real Time Traffic Counter

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

Ubuntu Installation :: Installing Counter Strike Condition Zero?

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

Hardware :: Counter Strik Server Motherboard Recommendations?

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

Networking :: IPtables Resets Counter When Rules Added

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

Software :: ImageMagic And Its Incremental Counter For The Output Files?

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

General :: Open A New Shell From A Shell And Switch Between Them?

Jan 18, 2011

I am wondering if I can open a shell or new terminal thing from within the terminal in a unix/linux enviroment. Particularly a commandline only one where there is no GUI. Is this doable? how do I do it?

View 3 Replies View Related

OpenSUSE :: Smplayer And Vlc Nuttiness - Sound And Time Counter Stop

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

Software :: Looking For Web App With Htaccess Management / Download Counter / File Manager

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

Software :: Ubuntu + Wine - Counter Strike 1.6 - Doesn't Have Sound At All

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

Programming :: Nested Loop Using A Counter To Increment Array Output?

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

CentOS 5 Networking :: Can't Connect To 'counter-strike Source Server'

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

Server :: Insert Counter Number In Subject Line Before Sending Email Message?

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

General :: Reset / Clear Blacklisted Myself?

Jan 11, 2010

I recently became co-owner of a server, however upon trying to ssh it became apparent the root admin gave me the wrong password by mistake;
After trying several times with the wrong pasword thinking I might have mistyped I have now blacklisted myself, huzzah.

How can I reset or clear the blacklist?

View 2 Replies View Related

General :: How To Reset Compiz Mess Up

Mar 29, 2010

I've played around with some themes, installed, activated and deactivated the emerald theme manager, etc. (I'm tired and did a lot of stuff). Now several things aren't alright:

- I've chosen to initiate the windows-switch-thing with mouse button 2. It dowsn't work anymore.

- The transparent background of my temrinal is too transparent - meaning: It always shows the desktop picture

- I've assigned all my media players to workspace 4 - it doesn't work anymore

Is there a way to just reset compiz to its original settings? PS: I know the informations I've given are kind of vague, but I'm too tired to do more. It's Ubuntu 9.1 and I'm using Gnome, not KDE.

View 4 Replies View Related

General :: How To Reset FTP User Password

Jul 13, 2010

How to reset FTP user password?

1) In the /etc/passwd file user is not available.

2) In this linux box VSFTPD is running.

View 2 Replies View Related

General :: Fedora EC2 Passwords Reset

Mar 2, 2011

I mount my Fedora AMI on my EC2 account, when I reboot the system, the passwords for ec2-user and root are changed.On the web I found that is a "feature" .

View 1 Replies View Related

General :: Failed To Reset Client?

Jul 6, 2011

failed to reset client

View 3 Replies View Related

General :: How To Reset Passwords In Ubuntu 10.10?

Nov 9, 2010

How Do I reset passwords in Ubuntu 10.10?

View 3 Replies View Related

General :: How To Reset Password Manually

Aug 11, 2010

how to reset my password manually?

View 3 Replies View Related

General :: Reset The Root Password?

Apr 30, 2010

I am using openSUSE 11.1 and I've lost my root password.The following didn't worked :-

Restart
give parameters " 1"
press e
press b ...

View 3 Replies View Related







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