|
Gawk match() and numbers in scientific notation On 5/7/2008 11:04 AM, pk wrote: On Wednesday 7 May 2008 17:37, Ed Morton wrote: these locales, `[a-dx-z]' is typically not equivalent to `[abcdxyz]'; instead it might be equivalent to `[aBbCcDdxXyYz]', for example. Is there a way to explicitly print out that information (or, better, t... 7 May 2008 14:04
Get the md5sum of every 64MB block in a large file using bash. Hello, can someone please help. I have an 8GB file and need the md5sum of every 64MB block in the file. I'm looking for some ideas on how to write a script to do this using bash - not interested in perl or other language solutions. The size of my disk is 10GB with a smallish linux system and 256MB free disk... 7 May 2008 14:04
What to backup on a Linux system an what not? I want to backup my Linux system (with rsync). What is recommended to backup and what not? Of cause, all the personal stuff should be saved but what about the "normal" system stuff of the OS? Which of the files, dirs and settings should be backuped? And the same question on what NOT to backup? Is there more ... 7 May 2008 13:14
How to to define the size of a file in scripting Hi everyone, I am writing a small script for log files whenever the size of a file exceeds it has to compress the file or split it into to file i want to know how to to define the size of file in scripting i am tring in the following way logtest=/var/log/testmessages 4 logsize="ls -lh /var/log/testmessa... 7 May 2008 13:14
scp script I have a script that is set up using ID: infa123 The script will scp files from one machine to another and only infa123 can write to the directories. The public key is set up so that the password is not prompted during the scp. I need to have a user execute this script but they would ha... 7 May 2008 12:25
Cygwin script issue All, I've got a directory with a bunch of files. I want to move certain files into a different directory. The list of files is in a text file. When I try to do it in a for loop for file in $(cat routers); do cp $file ../configs/.; done I'm getting a message saying: cp: cannot stat `russwdc-cpv21-7206\r': No s... 7 May 2008 08:20
How to exclude MULTIPLE directories in a rsync command ? As I learned from the man page of rsync I can exclude a certain directory (trees) by using the --exclude option like in rsync .... --exclude=/proc .... But how do I exclude multiple directory (trees) at once in such a rsync command? The following does not work: rsync .... --exclude=/proc||/var||/dummy .... ... 7 May 2008 04:05
ssh timeout script I need to figure out how long does it take for my ssh client to terminate due to inactivity. I wanted to do a script that when the ssh session is provoked it sends a date command to the screen and then every 10 minutes of inactivity sends the output of the date command to the screen and "you have been inactive for... 7 May 2008 00:56
Usenet server test script Below is a script that posts a test message via a public newserver and provides a randomly generated title and Message-ID. It uses the "rpost" command, which is included in the "suck" package to post the message. I'd like to add a "suck" command to the script to read the message back from the server, using the s... 6 May 2008 22:27
run cron manually I am not the Unix guy at my job. He left me a very simple change to do to the monthly backup before he went on holiday. I made the change but didn't put the correct permissions when I put it on the server so the monthly backup did not run over the weekend. I have reset the permissions. How can I run the monthly... 6 May 2008 22:27
Private talk via terminal in Solaris Hi, Is there a way to create a private communicate to another user through a terminal? I know wall command can broadcast the msg, but everyone on a terminal will see it. I never try "talk" command & don't know exactly how it works, and I think there is a way to do a 2-way communication on a terminal. Any sugg... 6 May 2008 22:27
Why can't I use `date` to set the date ? OK, let me rephrase that. Why can't I feed the output of the date command to set the date ? For instance something like that: date $( ssh user(a)reference "date" ) Yes, I know I can use +"%m%d%H%M%Y.%s" to output the format expected as input, BUT that still leaves out the problem of the time zone. The command ... 6 May 2008 22:27
How to put a command over SSH in background ? Assume I opened a SSH session to a remote Linux server. I want to start a long running command on that remote system and put that command in background so that I can logout (from SSH session) while the command is still running and not aborted. Normally I would have to put the command in such a case in background... 6 May 2008 22:27
Removing files but maintaining last 15 Chris Mattern wrote: On 2008-05-02, Ed Morton <morton(a)lsupcaemnt.com> wrote: You can use last access time or last modification time, you just can't use creation time. There's also change time; if they're not changing around permissions or ownerships, or using hard links to the file, it can be... 6 May 2008 22:27
Execute commands remotely and get its result Hi, If I want to execute a piece of command on a remote host, is remsh or rsh the only choice, even I don't want to get back its output or return code? What services should that remote host should run to provide the remsh or rsh connection? Are rlogind and sshd in the list? If I telnet(1) to the remote host... 6 May 2008 22:27
Pros and Cons of using ftp vs. rsync? In comp.os.linux.misc Goran Ivanic <goran(a)lycos.com> wrote: Assume I want to transfer large amounts of stuff from one server to another (through Internet). Either you do or you don't. It's hard enough understanding people's questions without having unnecessary assumptions thrown about. Which method sho... 6 May 2008 21:23
Execute commands remotely and get its result On 2008-05-06, lovecreatesbea...(a)gmail.com <lovecreatesbeauty(a)gmail.com> wrote: If I telnet(1) to the remote host from my local terminal and execute a command, the command doesn't be executed remotely, right? It does, but if you telnet in a script, the remote commands come from standard input, so you ... 6 May 2008 21:23
Column mapping On Sunday 4 May 2008 13:26, Janis Papanagnou wrote: Not if you use awk. With awk, you have a linear solution on the number of input records (assuming awk's hash lookups are efficient). Are you sure awk use hash lookups? Occasionally done efficiency analysis makes me suspect that a "standard" awk wil... 6 May 2008 21:23
FTP mv command On May 3, 11:33 am, Fox <f...(a)foxmail.in> wrote: I've small ftp script. it logins into remote FTP box and download files using mget command. I need to move the logfiles to other directoryfrom remote ftp as soon as my "mget" command done. I've tried mv command using both ftp / lftp but its not working... 6 May 2008 21:23
Is there a way to simulate/preview (but not really do) rsync ? As a first step in developing a rsync procedure I would like just to simulate the coded rsync command. In other words I want to preview the transferred files at first. How can I do such a simulated run? Matthew ... 6 May 2008 21:23 |