similar to: Feed a list of filenames to vim

Displaying 20 results from an estimated 10000 matches similar to: "Feed a list of filenames to vim"

2011 Jun 09
5
Vim scripting - cursor motion
I am working on my first vim script. The script is supposed to do some find/replace on a file, then save the file with a new name and quit vim. I will save the script in a file and then call it from a bash script like this: vim path-to-the-file -s path-to-my-script Maybe I have not found the right resources. I can find/replace with expressions that are similar to those I use manually, for
2008 Oct 17
7
ls and rm: "argument list too long"
Since when is there a limit in how long directory listings CentOS can show (ls), or how large directories can be removed (rm). It is really annoying to say, for example rm -rf /var/amavis/tmp and get only "argument list too long" as feedback. Is there a way to go round this problem? I have CentOS 5.2. - Jussi -- Jussi Hirvi * Green Spot Topeliuksenkatu 15 C * 00250 Helsinki *
2010 Jun 27
1
Dual nw card problem again
I have had problems like this before. Probably there is something important that I don't know about routing. Let me introduce to you "Lasso2", a CentOS 4 www server that has been working perfectly well for years. Now I added a second nw card (eth1), automatically using kudzu. I cannot get this dual nw setup to work. The first nw card (eth0) stopped at once working properly,
2010 Jan 04
2
Sendmail error: auxpropfunc error invalid parameter supplied
I just noticed this error in my messages log after restarting sendmail. The only change I have made is 1) manual fix in /usr/share/spamassassin/72_active.conf 2) sa-update (several times) Now the mail is not running ok, my mail queue keeps growing. Regards, Jussi Hirvi
2009 Dec 16
5
Old hd, new machine
What should I do to make an existing CentOS (5.4) disc boot up on a new computer? I just made on CentOS 5.3 installation on that machine, so I know the hardware is compatible. Would it be enough to boot with a DVD in rescue mode, or boot with another hd, and install grub? - Jussi -- Jussi Hirvi * Green Spot Topeliuksenkatu 15 C * 00250 Helsinki * Finland Tel. +358 9 493 981 * Mobile +358
2008 Aug 21
3
Disk quotas for Sendmail
Hi, CentOS 5.x, Sendmail 8.13.8. I would like to start using disk quotas on my Sendmail server, and optimally they should be configurable by user or group. How can this be done? (I tried to google, but no success.) - Jussi -- Jussi Hirvi * Green Spot Topeliuksenkatu 15 C * 00250 Helsinki * Finland Tel. & fax +358 9 493 981 * Mobile +358 40 771 2098 (only sms) jussi.hirvi at greenspot.fi *
2010 Jul 21
4
Fsck on mdraid array
Something seems to be wrong with my file systems, and I want to fsck everything. But I cannot. The setup consists of 2 hds, carrying 3 raid1 (ext3) file systems (boot, /, swap). OS is up-to-date CentOS 5. So I boot from CentOS 5.3 dvd in rescue mode, do not mount the file systems, and try to run fsck -y /dev/md0 fsck -y /dev/md1 fsck -y /dev/md2 For each try I get an error message:
2008 Aug 15
1
Hard disk, format, filesystem
Ok, I give up... I have to ask. This is CentOS 5. I switched one of my raid1 disks, and I already thought I had succeeded. But now it seems that something is very wrong with the first partition on the new disk. Luckily my system is fully bootable with the other disk. Here's some info. The new disk is sdb. // I removed all partitions with parted, and created the first one again. // parted
2007 Jan 19
2
Installing 4.4 - problem on 386
I tried installing with several options (noacpi noapm; noprobe; noprobe skipddc noacpi noapm nodma). Always I get the same error. BUT this is not in fac a CentOS problem at all, because I get the same error always when I boot from hd (Fedora Core), IF there is a CD in the CD-ROM drive. (I tried with CentOS 1/4, CentOS 2/4 and a HP printer software CD.) It must be something with the CD drive!
2010 Nov 16
4
easy httpd's problem
your guys: I can't see the direcotry under / produced by mkdir command via Internat Explorer, except the any direcotry and file that exist after the CentOS installation complete. This is my directory 's detail information: drwxr-xr-x root www-data root:object_r:default_t CenterRepo and my httpd's configuration information: <VirtualHost *:80> ServerAdmin
2010 Oct 12
2
Openwebmail emergency (Perl)
After system update yesterday, Openwebmail now gives an error: > Undefined subroutine &Compress::Zlib::memGzip called at /var/www/cgi-bin/openwebmail/shares/ow-shared.pl line 1175. I tried to do perl -MCPAN -e shell install Compress::Zlib But it says Compress::Zlib is up-to-date. What do to?? I cannot find an answer by googling. - Jussi -- Jussi Hirvi * Green Spot Topeliuksenkatu 15
2011 Apr 27
2
Where is my qemu command?
KVM virtualization is full of wonders. :-/ I would need to attach an USB disk to a vm, but how? The command "qemu" would provide a way: [root at a134-224 yum.repos.d]# man qemu-kvm > QEMU(1) > NAME > qemu-doc - QEMU Emulator User Documentation > > SYNOPSIS > usage: qemu [options] [disk_image] (...) > -usbdevice devname > Add the
2008 Oct 30
3
[OT] List of all email users
This is not CentOS-specific, hence OT. I need a list of all email users on my system (there are hundreds of them). The list could be extracted from /etc/aliases and the virtusertable. Does anyone know of a script that would do this automatically? It would have to - exclude commented-out lines (of course) - exclude duplicates - produce a list of usernames (or maybe unresolved email addresses for
2011 Mar 29
4
VMware vSphere Hypervisor (free ESXi) and mdraid
Can I combine VMWare ESXi (free version) virtualization and CentOS mdraid level 1? Any pointers how to do it? I never used VMWare before. - Jussi -- Jussi Hirvi * Green Spot Topeliuksenkatu 15 C * 00250 Helsinki * Finland Tel. +358 9 493 981 * Mobile +358 40 771 2098 (only sms) jussi.hirvi at greenspot.fi * http://www.greenspot.fi
2011 Apr 11
1
KVM resources?
Later this week I will have to install a serious KVM setup, and I am looking for background material. I found a nice how-to: http://wiki.centos.org/HowTos/KVM ...but it is probably partly outdated by now. Then there is a fine virtualization manual: http://www.centos.org/docs/5/html/5.2/Virtualization/ ...but it seems to be only for xen. I plan to use either CentOS 5.6 or Scientific Linux
2010 Jul 02
1
File sharing solution
I would like to offer my isp clients a solution for sharing (big) files, basically on one-to-one basis. This is how I imagine it: - an anonymous or registered user can upload a file - on response (s)he will get a file-specific (or batch-specific) username/password - (s)he can send a link and un/pw by email - the receiver can download the file - the file will be automatically deleted from the
2008 Aug 12
2
Sendmail with TLS, permission problem
Hello, list, I have a problem with Sendmail configuration. I'm building (on CentOS 5) a "dual-MTA" setup with amavisd-new (as specified in amavisd-new documentation, file README.sendmail-dual). So far so good. But when I tried to add server SMTP-AUTH and TLS, I get a strange, permission-related error, and STARTTLS will not start. In my .mc conf, the Sendmail user is now the usual
2011 Apr 22
2
KVM, virsh attach-disk error
I try to add a fresh, unformatted disk partition to a KVM guest. I follow the directions given here: http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5/html-single/Virtualization/index.html#proc-Virtualization-Adding_storage_devices_to_guests-Adding_physical_block_devices_to_virtualized_guests First I check that the module acpiphp is present on the guest. It is. On the host I write:
2011 Apr 23
1
KVM, virsh attach-disk problems
Greetings, list! I hope you forgive cross-posting - I only now found this list. I am in the process of configuring a KVM stack of about 8 vms. Mostly I am concerned about performance, as there will be a lot of I/O. My last problem is this: I try to add a fresh, unformatted disk partition to a KVM guest. I follow the directions given here:
2011 Apr 30
3
Identifying physical disks
I am sure this is really simple. I have a setup of 2 disks (sda, sdb) which are outwardly identical, and are mirrors of each other. Together they form 3 raid1 devices. Both disks can boot. Now sda has bad sectors, and I should replace it. But which one of the physical disks is sda?? The machine boots fine from either one of the disks, (and the booting disk of course is always called sda).