All pastes #2053524 Raw Edit

Mine

public text v1 · immutable
#2053524 ·published 2011-05-03 16:58 UTC
rendered paste body
[18:34:00] <xelister> hi i'm paying 0.5 - 2 BTC: to give me bash script to unfaggotize file names (make them fat32 compatible, just ascii, space to _ and other specials to _. ALSO make it solve resulting name collisions by adding some suffix like -3 -4 -5 etc) also just remove(trim) last/first spaces.  anyone?
[18:34:05] <e36freak> and it has an excellent wiki. really. if you can't install arch with just the wiki, you have no business using it
[18:34:09] <xelister> (pm me first)
[18:34:16] <e36freak> because shit *will* break. but that's off topic
[18:34:27] --> ManDay has joined this channel (~ManDay@66-247.eduroam.RWTH-Aachen.DE).
[18:34:36] <greycat> xelister: *plonk*
[18:34:38] <ManDay> As for my Zombie problem:
[18:34:43] <xelister> greycat: say what?
[18:34:47] <-- gregp76 has left this server (Client Quit).
[18:34:49] <e36freak> !plonk
[18:34:49] <greybot> The sound a name makes when it hits a kill file (or /ignore list).
[18:34:51] <ManDay> xelister: he plonked you
[18:34:59] <xelister> I know what a damn plonk is, I was asking wtf why
[18:35:01] <ManDay> greycat likes that sound a lot
[18:35:08] --> bafilius has joined this channel (~bafilius@pool-98-108-242-158.snloca.dsl-w.verizon.net).
[18:35:09] <ManDay> xelister: dont ask. he plonked me too
[18:35:18] <xelister> btw ManDay are you mining with btc? i recall your nick
[18:35:24] <ManDay> As for my Zombie problem:
[18:35:28] <ManDay> btc?
[18:35:30] --> gregp76 has joined this channel (~gregpendl@65.205.218.114).
[18:35:30] <ManDay> Anyway:
[18:35:32] <ManDay> As for my Zombie problem:
[18:35:37] <e36freak> braiiinnnns
[18:35:51] <ManDay> Is there a way to start a process that it doesnt become a zombie?
[18:35:55] <ManDay> (detach it sort of)
[18:36:25] <-- ayambit has left this server (Quit: ChatZilla 0.9.86.1 [Firefox 4.0/20110318052756]).
[18:37:10] <-- Jak2000 has left this server (Read error: Connection reset by peer).
[18:37:18] <twkm> xelister: hahahahaha.
[18:37:30] <xelister> twkm: what the fuck is greycat's problem here
[18:37:37] <-- mawhiii has left this server (Ping timeout: 252 seconds).
[18:37:39] <xelister> you are offended by being paid to help or wat :<
[18:37:51] <twkm> he thinks your bitcoins are hilarious?  i certainly do.
[18:38:02] <cusco_> and how would I not use grep? if [ $line ?? 'bla' ]
[18:38:02] <cusco_> ?
[18:38:08] <xelister> twkm: "my" bitcoins?
[18:38:13] --> t67_ has joined this channel (~joe@188.28.9.231.threembb.co.uk).
[18:38:16] * greycat checks the bot to see the conversation among the /ignored.
[18:38:28] <twkm> your offer to pay via that non-currency.
[18:38:29] <greycat> xelister: No, in this particular case, it was the use of the word "faggot".
[18:38:41] <-- t67 has left this server (Ping timeout: 276 seconds).
[18:38:42] <-- gregp76 has left this server (Client Quit).
[18:38:44] <Mali> greycat, thats the thing.. I am perhap shorrendous in bash, but I still know how to get there
[18:39:14] <xelister> greycat: so what, you know Im not actually homophobic, just anti politcall correctness bs ;)  but sure I can not use that word if you reaaaaly are offended....
[18:39:22] <Mali> and check this  , and I don't get it, one noobie who tried it worked for him "yay" all that but he passed it on to a *debian* user who had no success in installing arch properly? rofl
[18:39:31] <xelister> twkm: non-currency?
[18:39:35] <Mali> anyway, like I said, it's a beast rather than then beauty but anyway
[18:39:38] --> heliostatic has joined this channel (~heliostat@204.14.239.223).
[18:39:45] --> zooz has joined this channel (~zooz@host86-164-80-134.range86-164.btcentralplus.com).
[18:40:09] <-- enzotib has left this server (Read error: Connection reset by peer).
[18:40:17] <Mali> e36freak, I agree, this is post install, the installer is the simplest installer I have ever used
[18:40:23] --> enzotib has joined this channel (~enzotib@unaffiliated/enzotib).
[18:40:30] <xelister> twkm: I earned already ~1000 USD by bitcoin. There are few existing cantors that can instantly exchange bitcoin to USD/EUR and any other currency... and dozen of traders in #bitcoin-otc  http://bitcoincharts.com/markets/  fell free to ask me details on that channels about this topic (ot here)
[18:40:43] <Mali> thi sjust does some arch wiki stuff like the sha512, sudoers, user, X/wm/dm//de that kind of crap
[18:41:02] <twkm> xelister: no thanks, i'll just keep laughing.
[18:41:02] <Mali> ssh, daemons and modules
[18:41:03] <zooz> I need some help, I would like to write a bash daemon script which start e.g. 10 same processes and if one dies start another one, so it is always 10 same processes running
[18:41:08] <zooz> any examples maybe?
[18:41:15] <greycat> !pm > zooz
[18:41:15] <greybot> zooz: http://mywiki.wooledge.org/ProcessManagement
[18:41:27] <twkm> the process management page might be useful reading.
[18:41:32] <greycat> There are at least two examples of that problem in that page.
[18:41:35] <xelister> twkm: how you wish, but it works just as good as paypal or visa. Just faster, opensource, secure, and not on whims of account-frozen paypal styl.
[18:41:51] <edong23> greycat: hi, i have the word "faggot" on highlight... thanks
[18:41:53] <twkm> what idiot uses paypal?
[18:42:08] --> luke-jr has joined this channel (~luke-jr@ishibashi.dashjr.org).
[18:42:46] <xelister> twkm: well, if I would like to micro pay a bash using developer to do like 10 minutes micro task, what do you say is a nice way to do it? also, is it wellcomed here on #bash
[18:43:11] <Mali> twkm that would be $paypal-users
[18:43:12] <Mali> :p
[18:43:35] <-- aPpYe has left this server (Quit: ChatZilla 0.9.86.1 [Firefox 4.0.1/20110429131801]).
[18:43:38] <twkm> is it?  i seldom see anyone offer to pay for it, or anyone accept such a comission.
[18:43:53] <twkm> err, commission.
[18:45:09] <xelister> twkm: if you have any point why open-source cryptography based "currency" should be worse then cortporations controlled Paypal or VISA for small payments use, then we would love to hear from you at #bitcoin-dev :)
[18:45:09] --> Jak2000 has joined this channel (~Jak2000@189.155.32.18).
[18:45:25] <Mali> xelister, people in irc channels are often opinionated... sometimes with a reason, sometimes not, but that's what chatrooms are for.. or informative statements :P (and  I said it to xelister, but did not imply you necessarily twkm or vice versa , whoeveerr)
[18:45:39] <-- Jak2000 has left this server (Read error: Connection reset by peer).
[18:45:58] <Mali> about 8 years ago I signed up to eithe rpaypal or moneyteller and I never used them once
[18:46:05] <Mali> hehe
[18:46:19] <xelister> sure I would just like to learn other peoples reasonable POVs and possibly find the objectivly correct information if there is one
[18:46:36] <Mali> now with the US becming quite the regime, I definitely am more careful with my options
[18:47:32] <cusco_> another question....
[18:48:11] <cusco_> tail -f log|while read line do if [[ $line == *instru* ]]  then echo ${line:-6} fi; done
[18:48:17] <cusco_> is not working
[18:48:20] <greycat> needs ; before then
[18:48:22] <-- boaz has left this server (Quit: boaz).
[18:48:23] <cusco_> ah
[18:48:28] <greycat> and before if
[18:48:36] <greycat> err... no, before do.
[18:48:47] <greycat> and before fi
[18:49:02] <greycat> and needs quotes around the PE, and needs the parentheses around the -6
[18:49:21] <cusco_> sorry im using before do
[18:49:29] <cusco_> http://paste.debian.net/115896/
[18:49:34] <twkm> xelister: too bad you didn't just ask how to write a script to do what you wanted.  the diversion into hilarious currency, to pay for such a trivial task as would otherwise have been helped (not done for certain, i grant) for free was the funniest part.
[18:49:35] <greycat> It's almost like he didn't read what I wrote...
[18:49:46] <cusco_> sorry :|
[18:50:08] <cusco_> before do, before fi, and parentheses
[18:50:29] <xelister> hm?  I thought I would like to give some payment to people that help me instead of always just asking you guys to write me scripts fro free
[18:50:37] <xelister> it's not much perhaps but also the task is triviall
[18:50:40] <greycat> cusco_: if the code you show us is not the code you are actually *using*, how do you expect anyone to pinpoint your problems?
[18:50:58] <ManDay> Is there a way to start a process that it doesnt become a zombie?
[18:51:12] <-- Mali has left this server (Remote host closed the connection).
[18:51:56] <pgas> ManDay: disown it
[18:52:03] <xelister> twkm: are you going to say why its 'hilarious' currency or is it baseless
[18:52:19] <cusco_> greycat: im using this: http://paste.debian.net/115900/ - it prints the whole line, not only the last 6 chars
[18:52:30] <-- f0i has left this server (Read error: Connection reset by peer).
[18:53:07] <greycat> click click click clic wait wait wait
[18:53:14] <twkm> xelister: i don't find i can use it at my local market or bank.
[18:53:15] <ManDay> ty pgas
[18:53:29] <greycat> 12:49  greycat> and needs quotes around the PE, and needs the parentheses around the -6
[18:53:35] <greycat>                 echo ${line:-6};
[18:53:53] <-- tvm has left this server (Read error: Operation timed out).
[18:53:54] <greycat> You STILL DO NOT HAVE the quotes around the parameter expansion, or the parentheses around the -6.
[18:54:20] <-- enzotib has left this server (Read error: Connection reset by peer).
[18:54:45] <ManDay> pgas: wat is a JOBSPEC?
[18:54:59] <xelister> twkm: there are dozen of people in each country, and few international exchange points that will convert BTC <-> most currencies like USD,EUR,YEN,Pound,PayPal-USD,LiberyResrve and dozen of fiat currencies and other virtuall currencies, also you can buy domains with it, server names, etc; or donate to EFF, or Freenet and others
[18:55:14] <pgas> %something but you can use a PID
[18:55:26] <cusco_> greycat: the paretheses around -6 made it work, but with quotes arround the PE it doens't -- if [[ $line == "*instru*" ]]; <-- like that??
[18:55:39] [Whois] twkm is twkm@rfc1459.net ("those who know me have no need of my name")
[18:55:39] [Whois] twkm is a user on channels: #bash
[18:55:39] [Whois] twkm is online via zelazny.freenode.net (Corvallis, OR, USA).
[18:55:39] [Whois] twkm has been idle for 1 minute and 1 second.
[18:55:39] [Whois] twkm has been online since 04/15/11 09:57:53 am.
[18:55:39] [Whois] twkm is logged in as twkm.
[18:55:39] [Whois] End of WHOIS list.
[18:55:41] <greycat> cusco_: ${line:-6} is a parameter expansion
[18:55:54] <geirha> *"instru"*
[18:55:54] <greycat> *instru* is not a parameter expansion.  It is a glob.
[18:55:58] <cusco_> ah
[18:56:01] <cusco_> ok
[18:56:17] <cusco_> thanks for your patience
[18:56:23] <twkm> xelister: still wasting time trying to be a zealot instead of asking bash about your scripting desires.
[18:57:10] <e36freak> just. ask.
[18:57:26] --> BlueMatt has joined this channel (~matt@unaffiliated/bluematt).
[18:57:27] <xelister> twkm: well I resolved the problem it seems with existing "detox" application that fixes filenames.   I am interested in your opinion because I recall you as a reasonable fellow opensource user.