#bash
24 December 2007
Total 5 pages. You are browsing page 1/5.
First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last
--- Log opened Mon Dec 24 17:19:17 2007
--- Log closed Mon Dec 24 17:19:53 2007
--- Log opened Mon Dec 24 17:20:58 2007
--- Log closed Mon Dec 24 17:21:24 2007
--- Log opened Mon Dec 24 17:21:45 2007
17:27 <****> XATRIX: what is the problem?
17:27 <****> how to make a scriptline :(
17:28 <****> what the heck is a scriptline?
17:29 <****> XATRIX: well, have you tried the lines you have pasted here?
17:30 <****> /var/stargazer/cash.log
17:30 <****> so...this is correct and i can try it ?
17:31 <****> why do you think you cannot try it? it just prints something it won't destroy your computer
17:31 <****> xatrix
17:31 <****> xatrix: http://wooledge.org/mywiki/BashGuide
17:31 <****> xatrix
17:31 <****> xatrix: Try It And See
17:31 <****> and purchase some common sense
17:33 <****> XATRIX: I think you're not ready for this channel. You need to spend some time reading scripts and HOWTOs.
17:33 <****> You seem to be asking for someone to write your code for you.
17:34 <****> (Maybe if you were upfront about it, someone would offer?)
17:35 <****> ok :(
17:35 <****> bash isn't that hard, in my opinion, but we obviously have different experience levels.
17:36 <****> !absg
17:36 <****> abs is teh sux.
17:36 <****> (I don't know the bot very well)
17:36 <****> Well, it helped me.
18:05 <****> has anyone come accross the problem of "-bash: /bin/rm: Argument list too long" before?
18:05 <****> Yes.
18:05 <****> use a for loop, or find.
18:05 <****> not too often though, since i am sane.
18:05 <****> heh.
18:05 <****> go|dfish: I'm trying to delete a whole directory full of jpegs
18:06 <****> how do I get around it?
18:07 <****> ???
18:07 <****> find's -exec and +
18:07 <****> Could be one option, I guess.
18:08 <****> go|dfish: I need to be able to delete JUST the jpgs in the current directory. I'm running the command from a shell script
18:08 <****> find -maxdepth 1 -name "*.jpg" -delete
18:09 <****> a for loop. unless your find supports that ^^
18:09 <****> rm *.jpg
18:09 <****> rm ./*.jpg
18:09 <****> if you only need the current directory
18:10 <****> karolisl: your command gives the same problem
18:10 <****> JeevesMoss: well?
18:11 <****> Torchwood: thanks, yours worked
18:11 <****> :)
18:12 <****> ttl
18:27 <****> how can i test if at is working?
18:27 <****> run it.
18:27 <****> atq
18:52 <****> wtf at cant be working, it displays the jobs but it never actually runs the command
18:58 <****> !spaces
18:58 <****> !faq 1
18:58 <****> http://wooledge.org/mywiki/BashFAQ#faq1 -- How can I read a file line-by-line?
18:58 <****> the at queue isn't being run. find out why.
18:59 <****> !file
19:04 <****> I need to backup my system... but I only want to backup files under 20MB
19:04 <****> how would I go about doing this?
19:06 <****> use a backup program that allows you to make such a selection.
19:07 <****> find can be used to locate such files.
19:07 <****> hmm, thanks
19:12 <****> hey would anyone be able to take a look at a script for me? It my first and I'm looking for some feedback
19:13 <****> it's at http://pastebin.com/d304776c6
19:14 <****> Talcite: today's not halloween.
19:14 <****> it's a gentoo script that check to see if there are any new packages to emerge, then outputs it to stdout
19:14 <****> trash, err I'm not quite following you
19:15 <****> the script's for conky. that's the reason I'm not just using emerge normally =D
19:15 <****> not important.
19:15 <****> trash, it's christmas eve, what does halloween have to do with anything?
19:15 <****> it has something to do with your script.
19:15 <****> uhh my script's scary?
19:15 <****> bingo.
19:16 <****> so how should I improve it?
19:16 <****> the only app that gives me the option to exclude files over X size is a piece of crap that is flaky and doesn't work
19:17 <****> trash, you tell me the script's scary but you don't tell me how I can improve it... that's not helping me much
19:17 <****> erisco: use a combination of find to locate the files and exec to back them up with your tool of choice.
19:18 <****> !find
19:18 <****> http://wooledge.org/mywiki/UsingFind
19:18 <****> rapid, I was just going to use tar
19:19 <****> whatever tickles your fancy
19:19 <****> all the backup apps for ubuntu are largely undocumented and flaky
19:20 <****> tar is fine.
19:22 <****> rapid, I am not sure how I can specify a list of files to tar, though...
19:23 <****> find returns the list I want, which is excellent, but I am uncertain on how to feed that into tar
19:24 <****> perhaps if I tarred each file individually and then concatenated them into a single tar
19:24 <****> that seems kind of ridiculous though
19:25 <****> erisco: read about -exec using find.
19:27 <****> find . -name "*.txt" | xargs tar -cvf file.tar
19:28 <****> DogDay, for a bash newbie like me that's awfully helpful :)
19:29 <****> find / -size 20M -exec tar -cvf blah1.tar {} \;
19:29 <****> ?
19:30 <****> rapid, is it wrong to pipe it?
19:30 <****> I have no idea, maybe someone with more experience can comment.
19:33 <****> there is definitely something strange going on, though
19:33 <****> just using tar alone.... tar -zcvf etc_backup.tar /etc
19:33 <****> I get a 2.4MB file
19:34 <****> using find + tar I get a 7.4MB file
19:34 <****> both had the -z flag...
19:34 <****> yet the second doesn't seem to be compressed
19:35 <****> well, 7.2MB is still smaller in fact
Total 5 pages. You are browsing page 1/5.
First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last
