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


ADVERTISEMENT

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

Ubuntu :: Enlarge Image Canvas Using ImageMagic

Dec 28, 2010

The one thing that I can't learn to do is to expand the canvas size. So if the ratio is 3x2, I want to add extra white space to make it 3x3. If I use the -geometry function, it enlarges the image to the proportions I want, but it loses the aspect ratio.

If you turn to page 377 (or 388 in PDF) of the User Manual, under "Montage", you'll see that ImageMagic can do what I want. The thumbnails in the example image are all of different proportions but the alloted space is 1x1 for all.

However the documentation on this function is pretty bad! Does anyone know how to do this?

View 1 Replies View Related

Programming :: Pencil Sketch With Imagemagic Using Bash Script?

Jul 13, 2011

I may be using the wrong words to search but I'm not finding what I want.I would like to take a 10 sec video, 300 frames, convert it to individual frames convert them to line drawings and then reassemble them into an animated GIF. Both 'gimp' and 'mplayer' will do to make the frames. Is there already in existence a script file using imagemagic that will convert the pictures to line drawings without color? Or maybe several scripts that can be put into a step through 'bash' script.

View 6 Replies View Related

Software :: Making A Bash Script To Read In Different Files And Rename Output Files?

May 7, 2009

Until now i haven't had to dabble with bash scripts.

I have a program that reads in data files. These are named datafile01_R, datafile01_G, datafile01_B, they then increment, so datafile02_R etc i have about 600 of these. the program reads in 3 data sets at a time from each run, so files_01 r, g, and b.

The program then does its magic, and outputs about 40 different files, depending on the file, they gone to folders named R, G, B, psa, or tracking.

The program itself has configuration files to say where the files should gone when analyzed, there is also the config files that reads in the data sets.

At the moment i have to run one set of data, then go in and manually change the input file location, and run again. But, doing this, even though a different data set, the new set overwrites the old set in one of the output folders. So i need a way to increment the output filenames after they are written and before the program is run again with the new data set.

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

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

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

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

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

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

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

Fedora :: Incremental Automatic Backup

Jul 18, 2011

I am trying to find a backup program to incrementally backup some files to an external disk every week for example. I would prefer not to have to write a script as I am not really used to it.

View 4 Replies View Related

General :: Incremental Searching With The `less` Utility?

Feb 26, 2010

Does less have an incremental search?

I'm on xubuntu.

View 2 Replies View Related

General :: Administrator - How To Take Incremental Backup

Mar 16, 2011

I'm trying to take backup for my data for rhel, but I not able to take all backup. Could anybody help show me how I take incremental and full backups? What is the process?

View 3 Replies View Related

Ubuntu :: Rsync Like Incremental Backup

Oct 20, 2010

when rsync is finished the update, or in the meantime - i need to move the updated files to a different location - like date +%Y%m%d something or what ..the reason is, because of the development, i need the modified files, but all of them, not just the last one - so i have to store them daily, but i dont want to store the whole dir - just that few files which are updated does it make sense?

View 5 Replies View Related

Ubuntu :: How To Incremental Backup Of Folder

Mar 8, 2011

incremental backup of folder.The problem with e.g. find&tar is, that I want backup not only files with modification time after x:y , but also older files, that have been copied into this folder after last backup.

View 6 Replies View Related

General :: Rsync Not Doing Incremental Backups?

Jan 21, 2010

I am using rsync to backup dirs on my ubuntu server onto a NAS (which is mounted onto the filesystem), but the problem is that it is constantly doing full backups rather than doing incrementals and I am not really sure why. After doing a bit of expermienting with the script I noticed that if I just backed up a home dir (/home/user) the incremental backups work fine. If however I was to back up a dir like (/home/domain/user) it always does full backups.I have tried various different scripts but still the same end result. The latest script is a variation on the a script found on the samba rsync examples webpage, see below...

#!/bin/bash
# rsyncbu.sh -- backup to nas using rsync
# This script backups files listed in BDIR to the BSERVER. The verbose output along with the date is listed in the LOG_FILE specified
# verbose output

[code]....

View 4 Replies View Related

Server :: Incremental Backup In Linux

Sep 18, 2010

A complete back up using tar takes consumes more time. so is there any way to take incremental backups using tar.And i also want to take incremental backup dump of my databases too.Any suggestions and links will be very helpful.i keep on googling for this,but could find any exact for this.

View 14 Replies View Related

Server :: Using Rsync For Incremental Backups?

Jan 29, 2010

Can I use rsync for incremental backups of the running linux server?

View 5 Replies View Related

General :: Binary - Use Logs To Have Incremental Backup

May 7, 2009

I had full backup in mysql. now i added some tables .i got new binary logs. how i can i use these logs to have incremental backup.

View 3 Replies View Related

General :: Copying Open And Incremental File?

May 6, 2010

I'm getting a video from a camera connected to the computer and saving it to a constantly increasing file.

The thing is that I'm trying to make a non-stop copy of this file over the network (i.e. using scp, rsync or something like that).

View 4 Replies View Related







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