> RT is set each time a record is read. It contains the input text that matched the text denoted by RS, the record separator. This variable is a gawk extension. In other awk implementations, or if gawk is in compatibility mode (see section Command Line Options), it is not special.
On a sandbox VM environment, I have a setup of Ubuntu Linux which is firewalled and cannot be accessed from outside the local system. Therefore, on that VM, I'd like to give the administrative user (which I set up) the ability to run anything with sudo and not need a password.
While I know this...
all right, I don't want to make a habit of spamming this chat with links to things, since it's annoying, but please go help decide how (US) copyright law should look in the future. the more people that participate, the better and more credible the campaign will be.
Oh, I think it has to do with something Stéphane mentioned recently: some shells close stdin in command substitutions. But zsh is doing this in a very strange way.
I'm searching for a solution to a Bash 4 problem I have.
Bash 4 is able to iterate with leading zeros.
For the line:
for i in {001..005}; do echo -n $i" ";done;echo
the output is
001 002 003 004 005
but when I try this:
a="005"; for i in {001..${a}}; do echo $i;done
or something simila...
also to anyone doing reviews of the suggested edit queue, someone for the last day or so has been trying to spam existing A's with these big HTML posts. If they continue doing it some of us will burn through our 20 reviews for the day and will need additional assistance in keeping it in check!
@Gilles - I just checked I'm rejecting it the same way you did "This edit introduces spam, defaces the post in some way, or is otherwise inappropriate." so if it's coming from a few IPs then we should be able to keep it in check.
I added myself to visudo to have root-like privledges.
root ALL=(ALL:ALL) ALL
myusername ALL=(ALL:ALL) ALL
Great, now I have equal privilege as root one line above me. So I type in reboot and system says reboot: must be superuser
My goal is to use reboot as myusername without entering a passw...
I have some bash scripts that I use with the user 'root' to manage iptable rules.
The problem is that I want these things at the same time:
The script must be owned by root
Permissions must be 700
I want to have an executable binary that certain user can execute. This executable will run the m...
@slm I'm not sure anymore since he's accepted an answer. However, he's calling the script from a C program and that is what he wants to have run as root. That should work or if not, I'd be interested to know why.
Anyway, sorry guys, I'm falling asleep here. I'm going to get some sleep.
I have a question almost metaphysical question for all of you,
why people uses the tag linux and a distro tag at the same time
the problem can be either linux related or distro related, but if it's distro related then it should not be tagged as linux
user58869
to clasify it correctly i suppose, perhaps there is no link between the linux and the different distro tags in the database, so you need to include both. it would be better if the tags could be related to each other somehow
user58869
if it's a linux distro related things then it is also a linux related thing
no because distro have sometime there own way of doing things
for example networks interface file can't be linux related but can be ubuntu or RHEL
probably one unsolvable issue...
user58869
if ubuntu and redhat are both linux distros and you want to get a list of all posts that relate to linux then it makes sense to include posts that relate to redhat and ubuntu
user58869
the problem is not that the linux tag is being used, it's that the redhat and ubuntu tags dont have a relation to the linux tag, they should because they are related to it
user58869
1:57 PM
i could be mistaken about the relation, i never checked, i'm assuming
Are we removing general OS tags? Did I miss a meeting?
I've seen some edits in the review queue where users are removing general OS tags along with the burmination candidates. Is this community policy? I've seen this question but it doesn't seem to be very popular. By 'general' I don't mean 'gen...
@terdon - I think what you're saying is that if something has debian tag it's getting the linux tag for free (b/c of the link on the debian tag) but it can also show up explicitly too. In either case your filter will show Q's tagged as such, right?
Admittedly, this is more of an issue on SU which deals with a greater variety of OSs but still
@slm No, that's the problem, if it's not explicitly tagged as Linux, it won't inherit the tag
Basically, most Qs that are tagged as, say, arch, shoudl also be tagged as Linux IMO unless it is a problem that is very specific to arch like a pacman issue
Anything more general should be tagged as both the distro and Linux
For example, if I'm running an obscure distro, say Trisquel or something, tagging as Trisquel alone is not very useful unless you happen to know the details of that distro. Adding a linux tag makes the question appear when searching for linux issues and also highlights it for those of us who have favorited linux
because it often happen that something related to fedora centos or rhel is likely to work on RHEL-based distro, while issue with ubuntu mint or arch are likely to be debian-related
yeah let's not start messing w/ tags that we do not understand. fedora and rhel do not go together, I'd suggest always asking before embarking on any retagging. Retagging things incorrectly can actually cause more harm to the site then editing the body of the Q&A's.
@Kiwy This is completely wrong. There are very granular diffs b/w the fedora, rhel, centos tags and one shouldn't be just clumping things together. It's best to leave things alone if you're unsure. Even then use the chatroom to ask before doing anything like this.
Basically, most Qs that are tagged as, say, arch, shoudl also be tagged as Linux IMO unless it is a problem that is very specific to arch like a pacman issue
There are two broad categories of question that get the Linux tag: 1) Questions about general Linux issues where the OP just happens to be using a specific distro => tag as Linux and distro
2) Questions specific to a particular distro, again, I would tag as both distro and Linux.
@JennyD the problem with HPUX AIX Solaris is that they are so specific for so much thing that yes they share parts, but if you do not tag them correctly you're doomed
@JennyD the question origin says what tags it should use. I can ask how to configure a CUPS server but that doesn't mean that it should be tagged as linux just because CUPS happen to run only on linux
@Braiam It seems to me that a question should be tagged Linux if it's about something that is specific to linux and not applicable to other unix systems. Whereas if it's about e.g. a userspace program that works the same on all unixes, then it shouldn't have any OS tag at all
> CUPS provides a portable printing layer for UNIX-based operating systems. It has been developed by Easy Software Products to promote a standard printing solution for all UNIX vendors and users.
But about tags - I wouldn't tag a question about setting up CUPS on a server with the actual OS/distro unless I ran into a problem that was caused by that OS/distro being different from others.
Put it like this. Question is about CUPS regardless of OS -> only tag CUPS. It's about CUPS on any linux, but not e.g. BSD -> tag CUPS and Linux. It's about specific weirdness with Debian's CUPS package -> tag CUPS and Debian
nobody is saying that his question is illegitimate, but is unclear what is the goal of such action. IMO if you want the source of such old kernel for experimentations you at least should know where to get the kernel at all
@Kiwy no and he's talking about ubuntu version 2.6.whatever but that's just ignorance. Given the quality of Qs they tend to get on Ask Ubuntu, I'd say that's pretty much a normal Q