How can I see a list of the last n commits to a CVS repository?
Thanks!
How can I see a list of the last n commits to a CVS repository?
Thanks!
Possible Duplicate:
Can you help me with my software licensing question?
I'm confused about the state of OpenSolaris/SunOS/OracleExpress..
Can I use SunOS 10 for free? In a productive commercial environment?
Thanks!
I have a directory of backups that looks like this:
-rw-r--r-- 1 ftpuser ftponly 5610595 May 27 00:01 alpha-114.tar.asc
-rw-r--r-- 1 ftpuser ftponly 50559368 May 27 00:04 beta-211.tar.asc
-rw-r--r-- 1 ftpuser ftponly 61320807 May 27 00:06 gamma-387.tar.asc
-rw-r--r-- 1 ftpuser ftponly 43125044 May 27 00:07 epsilon-241.tar.asc
-rw-r--r-- 1 ftpuser ftponly 1107110560 Apr 26 04:33 zeta-7728.tar.asc
-rw-r--r-- 1 ftpuser ftponly 1107136555 Apr 27 00:29 zeta-7729.tar.asc
-rw-r--r-- 1 ftpuser ftponly 1107154163 Apr 28 00:29 zeta-7731.tar.asc
-rw-r--r-- 1 ftpuser ftponly 1107194763 May 1 00:33 zeta-7734.tar.asc
-rw-r--r-- 1 ftpuser ftponly 1107200582 May 2 00:33 zeta-7736.tar.asc
-rw-r--r-- 1 ftpuser ftponly 1107203436 May 4 00:32 zeta-7737.tar.asc
-rw-r--r-- 1 ftpuser ftponly 1107250397 May 7 00:33 zeta-7739.tar.asc
-rw-r--r-- 1 ftpuser ftponly 1107269251 May 8 00:26 zeta-7741.tar.asc
-rw-r--r-- 1 ftpuser ftponly 1107917088 May 9 00:32 zeta-7747.tar.asc
-rw-r--r-- 1 ftpuser ftponly 1107914021 May 10 00:22 zeta-7748.tar.asc
-rw-r--r-- 1 ftpuser ftponly 1113095971 May 11 00:32 zeta-7751.tar.asc
-rw-r--r-- 1 ftpuser ftponly 1114420811 May 12 00:32 zeta-7756.tar.asc
-rw-r--r-- 1 ftpuser ftponly 1114433146 May 13 00:31 zeta-7757.tar.asc
-rw-r--r-- 1 ftpuser ftponly 1114437345 May 14 00:32 zeta-7758.tar.asc
-rw-r--r-- 1 ftpuser ftponly 1114437862 May 16 00:29 zeta-7762.tar.asc
-rw-r--r-- 1 ftpuser ftponly 1115062371 May 17 00:29 zeta-7778.tar.asc
-rw-r--r-- 1 ftpuser ftponly 1115068367 May 18 00:30 zeta-7781.tar.asc
-rw-r--r-- 1 ftpuser ftponly 1115067272 May 19 00:24 zeta-7782.tar.asc
-rw-r--r-- 1 ftpuser ftponly 1115077719 May 20 00:26 zeta-7784.tar.asc
-rw-r--r-- 1 ftpuser ftponly 1115080120 May 22 00:25 zeta-7785.tar.asc
-rw-r--r-- 1 ftpuser ftponly 1115076554 May 23 00:33 zeta-7786.tar.asc
-rw-r--r-- 1 ftpuser ftponly 1115877146 May 24 00:26 zeta-7789.tar.asc
-rw-r--r-- 1 ftpuser ftponly 1115967469 May 27 00:53 zeta-7795.tar.asc
I want to delete all but the most recent 3 of every file-prefix, so in this case all the zeta-****.tar.asc files except the last three. I have a kind of complicated perl script that accomplishes this, but I'd like do be able to do it with bash.
Slick snippets appreciated!
I'm looking at a tcpdump of my network and seeing floods of mdns packets from my W2k3 AD Server. :
03:28:30.655189 IP mydomainserver.local.mdns > 224.0.0.251.mdns: 0*- [0q] 1/0/0 A 192.168.100.1 (40)
Why is it doing this and how can I stop it?
I'm writing a bash script, parsing options with getopts like this:
#!/bin/bash
while getopts ab: ; do
case $opt in
a) AOPT=1
;;
b) BOPT=$OPTARG
;;
esac
done
I'd like to have the "-b" option OPTIONALLY take an argument, but as it is, getopts complains if no argument is passed. How can I accomplish this?
Thanks!
I'm looking for a simple revision control system for server configs. Something like works like git, but preserves Unix file permissions. And is NOT RCS.
Any tips?
Thanks!
What's the difference between IntelPro MT and IntelPro PT server adapter cards? Would one of them be better for iSCSI?
Thanks!
I have a file system backup in a tar archive, created with:
cd / && tar -cpz -f mybackup.tgz usr/local
Doing a
tar tvzf mybackup.tgz
yields:
-rw-rw-r-- otto/otto 450 2010-04-15 22:08 usr/local/alpha-4.5/pkg/conf/PLATFORM/sparc
drwxr-xr-x otto/otto 0 2009-04-01 08:08 usr/local/alpha-4.5/pkg/ui/
drwxr-xr-x otto/otto 0 2009-04-01 08:08 usr/local/alpha-4.5/pkg/ui/src/
drwxr-xr-x otto/otto 0 2009-04-01 08:08 usr/local/alpha-4.5/pkg/ui/src/thyc/
-rw-r--r-- otto/otto 2416 2001-01-13 16:01 usr/local/alpha-4.5/pkg/ui/src/thyc/vid45
-rw-r--r-- otto/otto 569 2001-01-13 16:01 usr/local/alpha-4.5/pkg/ui/src/thyc/vid46
however, extracting like this:
tar xvpz -f mybackup.tgz
results in the following permissions:
snip...
-rw-rw-r-- 4 otto otto 450 2010-04-15 22:08 usr/local/alpha-4.5/pkg/conf/PLATFORM/sparc
drwx------ 4 root root 4.0K 2011-03-27 23:20 usr/local/alpha-4.5/pkg/ui/
drwxr-xr-x 7 otto otto 4.0K 2009-04-01 08:08 usr/local/alpha-4.5/pkg/ui/src/
drwxr-xr-x 7 otto otto 4.0K 2009-04-01 08:08 usr/local/alpha-4.5/pkg/ui/src/thyc/
-rw-r--r-- 4 otto otto 2416 2001-01-13 16:01 usr/local/alpha-4.5/pkg/ui/src/thyc/vid45
-rw-r--r-- 4 otto otto 569 2001-01-13 16:01 usr/local/alpha-4.5/pkg/ui/src/thyc/vid46
...snip
Notice the second line. For some reason, the directory is now owned by root and the permissions have changed to 700. Its children, who have the same original permissions as their parent, are created with the correct permissions. This is just an excerpt, this is all over the place in the extracted backup.
What could cause this?
Thanks!
I'm trying to set up a secure git repository server using ssh-keys and git-shell. Since our user database is stored in a central LDAP directory, I can't change users' default shell to git-shell, so I've tried prepending the git-shell command to the public key in the authorized_users file like this:
command="git-shell -c $SSH_ORIGINAL_COMMAND" ssh-dss AAAAB3NzaC1kc3...
However, git-shell won't even allow me to clone the repository:
dhcp202:git-ws frank$ git clone ssh://gitserver/var/repos/git/myrepo/
Cloning into myrepo...
fatal: What do you think I am? A shell?
fatal: The remote end hung up unexpectedly
Any ideas appreciated...