As an alternative I'd suggest doing one of the following things instead.
Provide root with it's own $HOME/bin directory and have this directory added to your $PATH. In this directory you could provide your own wrapper around the wrapper, ala:
#!/bin/bash
/bin/google-chrome --user-data-dir /ro...
I need to install PCRE 8+ on a Suse Enterprise Linux SP3 box.
The trouble is that the latest package available in the repo is 7.8.
How would I go about attaining 8+?
FYI, I need this to install The Bug Genie.
Weirdest thing, I had switched to SuSe 'cause it had the best hardware recognition at the time, I actually had a wireless card that didn't work with the vendor's driver under Windows and worked out of the box with SuSE.
I write a script and set it as a cron job.
But due to a difference of environment variables it doesn't work as it should be.
In that case I change a little bit with crontab -e and set a cron job time closest minute, and wait next minute to come to show the result. I feel this is a totally absurd...
I also spent 'bout 7 years working with RH and then Fedora systems but that was at the lab and we had a great sysadmin so I never needed to learn how to administer the system, he did it for me.
@slm I think the OP just needs to debug cron and is getting it backwards
The story goes:
A devout Spanish woman is being roundly criticized after taking it
upon herself to restore a church fresco of Jesus, a ham-fisted attempt
that left the piece looking like a child’s daubing.
Here is the end result:
It cracks me up every time I look at it, but the story...
Is it possible to pinch someone's nerve (on the shoulder) in a manner similar to the way Spock would do on Star Trek such that the person would either pass-out or result in being temporarily paralyzed?
Proponents of Ryukyu Kempo martial arts claim it is possible:
Does the vulcan nerve pinch ha...
I've got my eye on Caleb at the moment but he's not really active anymore so that's cheating. Next up will be Chris Down. I'll happily stay behind you, Gilles and POSIXman.
Is there a way to check the permissions of the root folder, /? I mean the folder's permissions, not its content's (/var, /usr, etc.) permissions? Running ls /.. shows the content's permissions.
Ah tweeted, ok. And yes, it is a ridiculous question and a very weak answer. I just get annoyed whenever one of these gets me so many upvotes and my actual good ones are ignored :(
mmm, I love the smell of awful arguments in the evening.
@mikeserv I have virtually nothing but the defaults enabled. therefore, using your own logic, I have virtually no networking-related hooks enabled. so why is there networking stuff in my initial ramdisk? that is the question. it has nothing, NOTHING to do with what I could enable. and the reason I mentioned generating my ramdisk is because you keep talking about Arch's live media - and in this context, the live media is irrelevant. — strugee7 mins ago
I hat this kind of useless comment, if you think it's the right answer, just upvote, what's the point of commenting about it?
This is the right answer, at least as far as Arch is concerned, I think. For instance, the live installation media is even distributed as an http bootable iPXE script. Many of the default init hooks are netboot related. — mikeserv2 hours ago
@strugee Woah though, you seem to have gotten all worked up while he was just having a calm conversation
@mikeserv I have virtually nothing but the defaults enabled. therefore, using your own logic, I have virtually no networking-related hooks enabled. so why is there networking stuff in my initial ramdisk? that is the question. it has nothing, NOTHING to do with what I could enable. and the reason I mentioned generating my ramdisk is because you keep talking about Arch's live media - and in this context, the live media is irrelevant. — strugee12 mins ago
Compare to:
> @strugee I dont know, maybe youre right. But to me, it...
> As i said, you could be right.
I don't see his comments as aggressive at all there. Anyway, your answer and Gilles's say basically the same thing: it's busybox.
@terdon probably. I got annoyed because from my perspective, I run Arch as my daily distribution and know my shit (and especially The Arch Way), yet he's still telling me how my distribution's put together
Consider that he also knows his shit, and has probably been using Arch for longer, that's all. He can be quite abrasive (and freely admits it himself) but I see him as being quite reasonable here. For all we know, he spent 15 years working on the Arch distro :)
@mikeserv - first of all, I'd like to apologize, since as @terdon kindly pointed out, I've been a little rude/aggressive. so sorry about that. second, wget actually isn't in the base group :). (curl is, though - pacman requires libcurl). — strugee25 secs ago
re: using Arch:
I dont know them personally or anything, though i know their init pretty well.
(got hit by a timeout that made one message appear before the other)
@strugee Very nice of you. Damn but I like the way we police ourselves. Please let me know if you see me overreacting in comments, it's been known to happen.
@strugee All I know is the week I spent using it. So you'll get no argument from me.
In the Army when another soldier noticed your uniform was off or something, they'd look you in the eye and say. "You need to fix your sh**."
And they were doing you a favor. I don't know - I try to temper it, but I always appreciated that kind of direct honesty. So it maybe it clings too well. My bad.
@strugee as far as the other thing goes - probably I just didn't state it well enough. The init hooks that come with a base arch install are - and even those on the live media ( to a lesser degree ) - sort of blessed, I guess, in ways others aren't.
So like, with Arch at least, its expected that many of your init hooks ( among other things ) will be homegrown, and you're left to fend for yourself there.
But if the hook comes with mkinitcpio, I think its safe to say that its fairly well guaranteed to work. So all that stuff that makes it work has got to come bundled as well. That was my point, is all. Though you made a good point as far as I'm concerned.
@terdon thinks I know my shit! I'm gonna do a postcard or something... That's a pretty flattering thing to read.
@terdon So Stephan's superhero identity is POSIXman?
@derobert Maybe unix.stackexchange.com/q/121384/4671 should be closed? Nobody will ever answer it now. But I don't see an option to close which looks like - the poster reinstalled and nobody will be able to reproduce the problem.
after answering a question about posix thingy and not being push out neither by Gilles terdon or slm, I feel like a new man this morning. If you add to this that I finally get 2k rep with this particular question... I'm about to cry
simple Q... if i'm create backup with compress it like $ tar cjfp $LIMITS_HOME and restore it with $ tar xfp $backup - is it OK? because I'm remeber that to unpack compressed TAR - need to set additional option, like $ tar xjfp or something like it...
(sorry asking here - but don't think this is Q for posting on main page)
@setevoy if you compress with bzip (the j option) then you also need to use that same option when unpacking. So tar xfjp would be the proper invocation.
How do I post text so that it is formatted as code?
What do I need to do so that my code shows up properly—not escaped or removed—when posted? And how to get the correct syntax highlighting?
For more information, see "How do I format my posts in HTML or Markdown?" in the Help Center.
Retur...
I'm on a BSD server right now, where the man page says `Note that, unlike other tar implementations, this implementation recognizes bzip2 compression automatically when reading archives.`
smbclient
You can use smbclient to print files. I'm able to print via Samba to one of my printers like so:
$ smbclient -U <user> //server/printer -c "print <filename>"
Example
$ smbclient -U sam //bart/mfc-8480dn -c "print hello_printer.txt"
Enter sam's password:
Domain=[BUBBA] OS=[Unix] Se...
I faithfully followed all the instructions in the LFS-7.5 book till 8.3.
8.4 is optional as it asks us to install grub or skip it entirely. I skipped this section completely and issued update-grub which found the lfs on partition /dev/sda3 and reported it as unknown linux distribution.
After t...
They OP ran say fdisk, redirected output, opened the resulting file in gedit and then proceeded to post a screenshot of gedit instead of just pasting the output!
In this case, we don't need to copy paste anything so it's not an issue for us (apart from making the post heavier and longer than it need be) but come on! Think of the guy's workflow!
I have noticed a lot of posts on AU with screenshots of their terminal showing commands and their output. This is seems like a very bad idea to me because:
You can't copy/paste the commands
They won't come up when searching
The post is heavier (in terms of the amount of data) and will take lon...
@terdon My guess is that his workflow is primarily crippled because he is probably opening those files in gedit through nautilus and has no clue how to use a terminal shell
@FaheemMitha it probably was Dragon. By alt tag I meant the alternate text in certain HTML tags, like the img tag. It is what you get when you hover your mouse over an image, for example. That software will read that text instead of displaying an image
I have an application which write to a file. Before I run the application, I would like to rotate the file. In others move file.n to file.n+1 file to file.1.
I can write a script to do this, but I was wondering if there is a simpler way to do this?
I missed that point (about rotatelogs -- I was also unaware of it. Of course installing apache for one simple command seems a bit much, but that's besides the point). This is the more general question, it might be good to combine them.
I.e., Edit the other question to make it more like this one, I'll move my answer (for what it's worth, and eat the upvote, I guess), then close this one as a dupe. Yes/no?
But on a serious note, I had a scenario at an old job that needed some simple, easily portable file manipulation (grabbing diffs and applying them) on windows and I ended up going with a python script compiled to exe, a few binaries from gnu and the few dll's to make it all work. I could copy that to any box I needed and didn't have to care about what .Net was on it or if powershell was there or anything else. It just worked.
@casey my only script language on windows is AutoIt, fucking easy fucking well documented and fucking powerfull and any script can transport embedded file and is "compilable" to a portable executable
@Kiwy well I knew enough python to make it work and I didnt need to learn something new. Most of my work at that job was c++ and fortran and I just needed a little bit of glue to automate part of the production process
@casey the advantage of this one is that it's portable on any windows without having to install anything except deploying the compiled script that embedded the runtime
Undefined Behavior Killed My Cat
It's well known that undefined behavior can kill your cat [citation needed].
But can it?
Your Task
Write a program that invokes undefined behavior.
Describe a scenario that starts with the above program being run, resulting in a Felis catus ending its life whi...
Case sensitive is part of the POSIX way of handling command and argument it has nothing to do with the meaning.
It's a very good thing that Status and status are not the same because the file system which kind of a base in the system is case sensitive (because of POSIX rules). It's usually a g...
I got the design in at the end of last week but there was a snafu in actually getting it deployed onto the server and then hooked up on the site, but now you guys have your site design up. Enjoy~
@Kiwy your answer is besides the point: it explains why the program receives the actual argument but not why it wouldn't interpret it case-insensitively in this particular case