Segédprogramok

awk, ", és az új sor

Fórumok

Sziasztok!

van egy filem benne tübbek között URL-ek, amikben van & karakter. Szeretnék emiatt awk-val "-jelet tenni az URL elé és mögé de sehogy sem sikerül. Eddig jutottam:
awk '{printf "wget --load-cookies cookies.txt \""; print $4; printf "\"" }' database.csv

A probléma így az, hogy a második " jel mindig új sorba kerül. Mit tegyek, hogy ez ne így legyen?

Köszönöm! :)

gzip: already exists; do you wish to overwrite (y or n)? n

Fórumok

Szervusztok!

Ilyen itt még nincs, gondoltam okulásképp megírom.
A gzip kérdez kicsomagolásnál, ha létezik hasonló nevű file, de hiába utasítod el, felülcsapja.
It's a BUG or a feature?
Példa lentebb. Üdv, vfero


#!/bin/bash -u
#
# gzip decompressing overwrite test script
# vfero 07/12/2013

\mkdir ~/gzipTest					# create test directory
\cd $_							# get it
\echo $_ > bug_file					# dummy file containt
\echo "gzip is overwrite" | gzip -9 > bug_file.gz	# create archive
\gzip -d bug_file.gz					# choose n
\cat bug_file						# overwrite :(
\ls -al							# list
\cat << EOF
My gzip version is:

gzip -V
gzip 1.5
Copyright (C) 2007, 2010, 2011 Free Software Foundation, Inc.
Copyright (C) 1993 Jean-loup Gailly.
This is free software.  You may redistribute copies of it under the terms of
the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
There is NO WARRANTY, to the extent permitted by law.

Written by Jean-loup Gailly.

My system versions are:
lsb_release -a
LSB Version:	core-2.0-amd64:core-2.0-noarch:core-3.0-amd64:core-3.0-noarch:core-3.1-amd64:core-3.1-noarch:core-3.2-amd64:core-3.2-noarch:core-4.0-amd64:core-4.0-noarch:core-4.1-amd64:core-4.1-noarch:security-4.0-amd64:security-4.0-noarch:security-4.1-amd64:security-4.1-noarch
Distributor ID:	Debian
Description:	Debian GNU/Linux 7.2 (wheezy)
Release:	7.2
Codename:	wheezy
EOF

\exit

# \rm -rf ~/gzipTest								# remove all

Szabadság illetve ügyelet beosztása

Fórumok

Kérdésem az lenne, ismertek-e olyan programot, ami:

webes felületű
nyílt forráskód, vagy céges használatra ingyenes
beépített naptár
felhasználókezelés

A feladat:
Minden hónapban ki kell osztani a szabadságokat illetve az ügyeleti rendet. Ez eddig excell táblában történik, az össze is tudja számolni. Hátránya hogy egy embert leköt ennek az adminisztrációja.

Webes felületre belépnének az emberek, és tetszőleges szabad helyre felveszik a szabadságot, illetve az ügyeleti beosztást (naponként).
Egy ember többször is ügyelhet, illetve nem kötelező minden hónapban ügyelnie, amennyiben már az összes szabad időpont kiosztásra került.

Hónap végén, vagy elején látható legyen összesítve, ki mennyi ügyeletet illetve szabadságot használt ki.

OpenERP-ben találtam ilyen modult, de elképzelhető vannak kisebb csak erre a célra készített alkalmazások.

[Megoldva] curl vs wget

Fórumok

Hello,

probalok letolteni isokat amiket ki akarok majd probalni. Most tavolrol bejelentkezve probaltam es nem emlekeztem hogy wgetnek van-e valami opcioja amit meg kell adni rakerestem. Kaptam talalatokat curl vs wget-re, gondoltam kiprobalom ezt a curl-t. De nem tolt le semmit.
Itt egy pelda:

felhasznalo@Baldur:/media/Docs_and_Backups/ISOs/operating_systems$ curl -Ov http://download.fedoraproject.org/pub/alt/releases/19/Spins/i386/Fedora-Live-LXDE-i686-19-1.iso
* About to connect() to download.fedoraproject.org port 80 (#0)
*   Trying 2001:4178:2:1269::fed2...   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0connected
> GET /pub/alt/releases/19/Spins/i386/Fedora-Live-LXDE-i686-19-1.iso HTTP/1.1
> User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Host: download.fedoraproject.org
> Accept: */*
>
< HTTP/1.1 302 FOUND
< Date: Wed, 13 Nov 2013 18:11:00 GMT
< Server: Apache/2.2.15 (Red Hat)
< cache-control: no-cache
< location: http://mirrors.kernel.org/fedora-alt/releases/19/Spins/i386/Fedora-Live-LXDE-i686-19-1.iso
< AppTime: D=234762
< AppServer: mirrorlist-phx2.phx2.fedoraproject.org
< Content-Length: 0
< Content-Type: text/html; charset=utf-8
< ProxyTime: D=574204
< ProxyServer: proxy02.fedoraproject.org
<
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
* Connection #0 to host download.fedoraproject.org left intact
* Closing connection #0
felhasznalo@Baldur:/media/Docs_and_Backups/ISOs/operating_systems$

Ugyanez a wget verbose-zal:


felhasznalo@Baldur:/media/Docs_and_Backups/ISOs/operating_systems$ wget -v http://download.fedoraproject.org/pub/alt/releases/19/Spins/i386/Fedora-Live-LXDE-i686-19-1.iso
--2013-11-13 13:17:04--  http://download.fedoraproject.org/pub/alt/releases/19/Spins/i386/Fedora-Live-LXDE-i686-19-1.iso
Resolving download.fedoraproject.org (download.fedoraproject.org)... 2001:4178:2:1269::fed2, 2610:28:3090:3001:dead:beef:cafe:fed4, 2607:f188::dead:beef:cafe:fed1, ...
Connecting to download.fedoraproject.org (download.fedoraproject.org)|2001:4178:2:1269::fed2|:80... connected.
HTTP request sent, awaiting response... 302 FOUND
Location: http://mirror.solarvps.com/fedora/alt/releases/19/Spins/i386/Fedora-Live-LXDE-i686-19-1.iso [following]
--2013-11-13 13:17:05--  http://mirror.solarvps.com/fedora/alt/releases/19/Spins/i386/Fedora-Live-LXDE-i686-19-1.iso
Resolving mirror.solarvps.com (mirror.solarvps.com)... 65.98.60.155
Connecting to mirror.solarvps.com (mirror.solarvps.com)|65.98.60.155|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 687865856 (656M) [application/x-iso9660-image]
Saving to: `Fedora-Live-LXDE-i686-19-1.iso'

es igy siman lejon.

Nem lattam semmi hibat a curl-os letoltesben. Valakinek valami otlete?

Multiboot partíció készítése

Fórumok

Lehetséges ilyen? USB stickre van egy Multiboot USB nevű francia programocska, ami pendrive-okból tud ilyet csinálni.
Én egy partíciót szeretnék létrehozni erre a célra. Megoldható, hogy bootoljon többféle live rendszert, telepítőt, rendszermentő programot, ilyesmiket? Gondolom GRUB-ot is agyon kellene heggesztgetni hozzá, hogy működjön...

Keresek WSDL webservice monitoring eszközt!

Fórumok

Az lenne a kérdésem, hogy ismer-e valaki olyan eszközt, amivel egy WSDL-alapú webszolgáltatást lehet monitorozni.

Az alap az lenne, hogy megetetem vele a WSDL elérhetőségét, és jelez, ha valami baj van. Ha emailt tudna küldeni, az előny, de nem feltétlenül szükséges. Ezen kívül még annyi lenne a követelmény, hogy freeware vagy open source legyen.

Annyira nem értek a témához, de biztos vagyok benne, hogy nem csak nekem van ilyen problémám, így lesz rá valahol megoldás. Nem kellenek enterprise funkciók, elég, ha "csak működik".

Köszi!

ramsmp - RAM sebesség benchmarkolás - GANGED vs UNGANGED

Fórumok

Üdvözlet!

Gondoltam kell ennek egy topic, mert érdekes. Lehet. Valakinek.

Szóval van ez a ramsmp nevű program: http://alasir.com/software/ramspeed/
Amivel különböző benchmarkokat lehet a ramra ráengedni.

Kipróbáltam GANGED és UNGANGED módban is őket. (AMD Phenom II X4 955 BE C3 + 2x2GB DDR2 800-MHz CL5 KIT)
Az OS openSUSE 12.3 amd64, a kernel 3.7-es, AMD K8 kóddal fordítva, egyénileg. Más buhera nincs.

Én kézzel telepítettem a programot és megcsináltam, hogy a

ramsmp

paranccsal lehessen hívni.

Aztán írtam hozzá egy kis scriptet:

#!/bin/bash
# init

# This will prompt for the Enter key to be pressed.
echo ''
echo '***************************************************'
echo '*  This will benchmark your memory using ramsmp.  *'
echo '*  Output data will be written to ~/ramtest.log   *'
echo '***************************************************'
echo ''
read -p "Press [Enter] key to start benchmarking..."

#This will start benchmarking
echo ''
echo 'Executing the INTmark test...'
echo 'Executing the INTmark test...' >> ~/ramtest.log
ramsmp -r -b 3 >> ~/ramtest.log
echo 'Finished the INTmark test!' >> ~/ramtest.log
echo 'Executing the FLOATmem test...' >> ~/ramtest.log
echo 'Finished the INTmark test!'
echo 'Executing the FLOATmem test...'
ramsmp -r -b 6 >> ~/ramtest.log
echo 'Finished the FLOATmem test!' >> ~/ramtest.log
echo 'Executing the MMXmark test...' >> ~/ramtest.log
echo 'Finished the FLOATmem test!'
echo 'Executing the MMXmark test...'
ramsmp -r -b 9 >> ~/ramtest.log
echo 'Finished the MMXmark test!' >> ~/ramtest.log
echo 'Executing the SSEmem test...' >> ~/ramtest.log
echo 'Finished the MMXmark test!'
echo 'Executing the SSEmem test...'
ramsmp -r -b 12 >> ~/ramtest.log
echo 'Finished the SSEmem test!' >> ~/ramtest.log
echo 'Executing the MMXmark (nt) test...' >> ~/ramtest.log
echo 'Finished the SSEmem test!'
echo 'Executing the MMXmark (nt) test...'
ramsmp -r -b 15 >> ~/ramtest.log
echo 'Finished the MMXmark (nt) test!' >> ~/ramtest.log
echo 'Executing the SSEmem (nt) test...' >> ~/ramtest.log
echo 'Finished the MMXmark (nt) test!'
echo 'Executing the SSEmem (nt) test...'
ramsmp -r -b 18 >> ~/ramtest.log
echo 'Finished the SSEmem (nt) test!'
echo 'Finished the SSEmem (nt) test!'
>> ~/ramtest.log
echo ''
echo 'Finished all tests!'
echo 'Finished all tests!' >> ~/ramtest.log

Ez lefuttattva a ~/ -be tesz egy ramtest.log fájlt, az eredménnyel. Elég egyszerű dolog.

Szeretném megosztani az eredményeim is!
UNGANGED MÓD

Executing the INTmark test...
RAMspeed/SMP (Linux) v3.5.0 by Rhett M. Hollander and Paul V. Bolotoff, 2002-09

8Gb per pass mode, 2 processes

INTEGER   Copy:      5856.96 Mb/s
INTEGER   Scale:     5732.60 Mb/s
INTEGER   Add:       5313.90 Mb/s
INTEGER   Triad:     5275.50 Mb/s
---
INTEGER   AVERAGE:   5544.74 Mb/s

RAMspeed/SMP (Linux) v3.5.0 by Rhett M. Hollander and Paul V. Bolotoff, 2002-09

8Gb per pass mode, 2 processes

Finished the INTmark test!
Executing the FLOATmem test...
RAMspeed/SMP (Linux) v3.5.0 by Rhett M. Hollander and Paul V. Bolotoff, 2002-09

8Gb per pass mode, 2 processes

FL-POINT  Copy:      5898.57 Mb/s
FL-POINT  Scale:     5862.29 Mb/s
FL-POINT  Add:       6459.27 Mb/s
FL-POINT  Triad:     6502.70 Mb/s
---
FL-POINT  AVERAGE:   6180.71 Mb/s

RAMspeed/SMP (Linux) v3.5.0 by Rhett M. Hollander and Paul V. Bolotoff, 2002-09

8Gb per pass mode, 2 processes

Finished the FLOATmem test!
Executing the MMXmark test...
RAMspeed/SMP (Linux) v3.5.0 by Rhett M. Hollander and Paul V. Bolotoff, 2002-09

8Gb per pass mode, 2 processes

MMX       Copy:      5074.84 Mb/s
MMX       Scale:     5091.86 Mb/s
MMX       Add:       5393.58 Mb/s
MMX       Triad:     5290.56 Mb/s
---
MMX       AVERAGE:   5212.71 Mb/s

RAMspeed/SMP (Linux) v3.5.0 by Rhett M. Hollander and Paul V. Bolotoff, 2002-09

8Gb per pass mode, 2 processes

Finished the MMXmark test!
Executing the SSEmem test...
RAMspeed/SMP (Linux) v3.5.0 by Rhett M. Hollander and Paul V. Bolotoff, 2002-09

8Gb per pass mode, 2 processes

SSE       Copy:      5320.47 Mb/s
SSE       Scale:     5285.97 Mb/s
SSE       Add:       5561.15 Mb/s
SSE       Triad:     5457.51 Mb/s
---
SSE       AVERAGE:   5406.28 Mb/s

RAMspeed/SMP (Linux) v3.5.0 by Rhett M. Hollander and Paul V. Bolotoff, 2002-09

8Gb per pass mode, 2 processes

Finished the SSEmem test!
Executing the MMXmark (nt) test...
RAMspeed/SMP (Linux) v3.5.0 by Rhett M. Hollander and Paul V. Bolotoff, 2002-09

8Gb per pass mode, 2 processes

MMX (nt)  Copy:      9676.31 Mb/s  [NTA prefetch]
MMX (nt)  Scale:     9743.89 Mb/s  [NTA prefetch]
MMX (nt)  Add:       8637.64 Mb/s  [T0 prefetch]
MMX (nt)  Triad:     8973.19 Mb/s  [T0 prefetch]
---
MMX (nt)  AVERAGE:   9257.76 Mb/s

RAMspeed/SMP (Linux) v3.5.0 by Rhett M. Hollander and Paul V. Bolotoff, 2002-09

8Gb per pass mode, 2 processes

Finished the MMXmark (nt) test!
Executing the SSEmem (nt) test...
RAMspeed/SMP (Linux) v3.5.0 by Rhett M. Hollander and Paul V. Bolotoff, 2002-09

8Gb per pass mode, 2 processes

SSE (nt)  Copy:      9517.12 Mb/s  [NTA prefetch]
SSE (nt)  Scale:     9506.87 Mb/s  [NTA prefetch]
SSE (nt)  Add:       8729.61 Mb/s  [T0 prefetch]
SSE (nt)  Triad:     8986.34 Mb/s  [T0 prefetch]
---
SSE (nt)  AVERAGE:   9184.99 Mb/s

RAMspeed/SMP (Linux) v3.5.0 by Rhett M. Hollander and Paul V. Bolotoff, 2002-09

8Gb per pass mode, 2 processes

Finished all tests!

GANGED MÓD

Executing the INTmark test...
RAMspeed/SMP (Linux) v3.5.0 by Rhett M. Hollander and Paul V. Bolotoff, 2002-09

8Gb per pass mode, 2 processes

INTEGER   Copy:      4824.60 Mb/s
INTEGER   Scale:     4811.52 Mb/s
INTEGER   Add:       4168.50 Mb/s
INTEGER   Triad:     4068.89 Mb/s
---
INTEGER   AVERAGE:   4468.38 Mb/s

RAMspeed/SMP (Linux) v3.5.0 by Rhett M. Hollander and Paul V. Bolotoff, 2002-09

8Gb per pass mode, 2 processes

Finished the INTmark test!
Executing the FLOATmem test...
RAMspeed/SMP (Linux) v3.5.0 by Rhett M. Hollander and Paul V. Bolotoff, 2002-09

8Gb per pass mode, 2 processes

RAMspeed/SMP (Linux) v3.5.0 by Rhett M. Hollander and Paul V. Bolotoff, 2002-09

8Gb per pass mode, 2 processes

FL-POINT  Copy:      4724.16 Mb/s
FL-POINT  Scale:     4758.73 Mb/s
FL-POINT  Add:       5513.20 Mb/s
FL-POINT  Triad:     5545.72 Mb/s
---
FL-POINT  AVERAGE:   5135.45 Mb/s

Finished the FLOATmem test!
Executing the MMXmark test...
RAMspeed/SMP (Linux) v3.5.0 by Rhett M. Hollander and Paul V. Bolotoff, 2002-09

8Gb per pass mode, 2 processes

MMX       Copy:      4331.54 Mb/s
MMX       Scale:     4387.29 Mb/s
MMX       Add:       4689.86 Mb/s
MMX       Triad:     4632.00 Mb/s
---
MMX       AVERAGE:   4510.17 Mb/s

RAMspeed/SMP (Linux) v3.5.0 by Rhett M. Hollander and Paul V. Bolotoff, 2002-09

8Gb per pass mode, 2 processes

Finished the MMXmark test!
Executing the SSEmem test...
RAMspeed/SMP (Linux) v3.5.0 by Rhett M. Hollander and Paul V. Bolotoff, 2002-09

8Gb per pass mode, 2 processes

SSE       Copy:      4427.82 Mb/s
SSE       Scale:     4511.41 Mb/s
SSE       Add:       4836.88 Mb/s
SSE       Triad:     4923.06 Mb/s
---
SSE       AVERAGE:   4674.79 Mb/s

RAMspeed/SMP (Linux) v3.5.0 by Rhett M. Hollander and Paul V. Bolotoff, 2002-09

8Gb per pass mode, 2 processes

Finished the SSEmem test!
Executing the MMXmark (nt) test...
RAMspeed/SMP (Linux) v3.5.0 by Rhett M. Hollander and Paul V. Bolotoff, 2002-09

8Gb per pass mode, 2 processes

MMX (nt)  Copy:      9078.88 Mb/s  [NTA prefetch]
MMX (nt)  Scale:     9052.25 Mb/s  [NTA prefetch]
MMX (nt)  Add:       8313.64 Mb/s  [T0 prefetch]
MMX (nt)  Triad:     8087.18 Mb/s  [T0 prefetch]
---
MMX (nt)  AVERAGE:   8632.99 Mb/s

RAMspeed/SMP (Linux) v3.5.0 by Rhett M. Hollander and Paul V. Bolotoff, 2002-09

8Gb per pass mode, 2 processes

Finished the MMXmark (nt) test!
Executing the SSEmem (nt) test...
RAMspeed/SMP (Linux) v3.5.0 by Rhett M. Hollander and Paul V. Bolotoff, 2002-09

8Gb per pass mode, 2 processes

SSE (nt)  Copy:      9211.12 Mb/s  [NTA prefetch]
SSE (nt)  Scale:     8837.63 Mb/s  [NTA prefetch]
SSE (nt)  Add:       8135.74 Mb/s  [T0 prefetch]
SSE (nt)  Triad:     8325.29 Mb/s  [T0 prefetch]
---
SSE (nt)  AVERAGE:   8627.44 Mb/s

RAMspeed/SMP (Linux) v3.5.0 by Rhett M. Hollander and Paul V. Bolotoff, 2002-09

8Gb per pass mode, 2 processes

Finished all tests!

Az eredmények eléggé az UNGANGED mód mellett szólnak. Úgy tudom ilyenkor a 2 csatornás ram vezérlő 2x64bit szávszélességgel gazdálkodik, míg GANGED módban 1x128bit sávszéleségel.
Meg tudja mondani valaki, hogy miért jobb az UNGANGED?

Meg persze ha más is megcsinálja a tesztet, itt megoszthatja az eredményét. Csak mint érdekesség.