Download your favorite Linux distribution at LQ ISO.
Go Back > Blogs
User Name



VBS for cwrsync - RSYNC_PASSWORD gotcha

Posted 12-23-2011 at 12:19 AM by catkin
Updated 12-23-2011 at 12:20 AM by catkin (Added comment moderation and email notification)

When running cwrsync as SYSTEM it difficult to satisfy rsync's requirement that the password file must be owned by root and readable only by root.

One solution is to set the RSYNC_PASSWORD environment variable.

When using Visual Basic Script to automate the cwrsync run, there's a "gotcha" -- RSYNC_PASSWORD must be a SYSTEM environment variable, not a USER environment variable.

Sample code:
LQ 5k Club
Posted in Uncategorized
Views 1422 Comments 0 catkin is offline

Selecting fields from a line using "cut"

Posted 12-22-2011 at 06:56 PM by Telengard (Here are some things which I hope will be helpful.)
Updated 12-26-2011 at 10:26 PM by Telengard
Tags cut

using cut to break down text

You can use cut to grab only the data you want from a line of text. Tell cut which groups of characters you are interested in and it will print them. By default cut uses tab characters to break down groups of text from the input file.

NOTE: In the example data files which follow, the strings <TAB> and <SPACE> shall be used to visually distinguish whitespace characters. A tab character is the character generated when you press the...
Views 7455 Comments 0 Telengard is offline

How to kill lines before and after a pattern

Posted 12-21-2011 at 05:45 PM by Telengard (Here are some things which I hope will be helpful.)
Updated 12-21-2011 at 06:27 PM by Telengard
Tags awk

PHP Code:
#! /usr/bin/awk -f

# Deletes n lines before pattern and m lines after.
# Intended to be portable.
# It is your own responsibility to evaluate the fitness of this program.

# set the following initializers as you please
    # FS=" "
    # OFS=" "

line 11/ { # insert your desired regex "pattern" between the slashes
Posted in programming
Views 1139 Comments 0 Telengard is offline


Posted 12-20-2011 at 08:41 PM by hydraMax (Bits and Pixels)

Hello. My user name at LQ is "hydraMax", but my real name is Christopher. If you wish to communicate with me, I have private messaging enabled. If you wish to communicate with me outside of LQ, send me a private message and we can exchange e-mail addresses.

I'm hoping to use this blog primarily to draw attention to the work I do and the projects with which I'm involved, usually available at my Web site, What do I do? Well, it is hard to summarize because...
Posted in Uncategorized
Views 462 Comments 0 hydraMax is offline

You never stop learning.

Posted 12-20-2011 at 07:01 PM by peonuser
Updated 12-20-2011 at 07:02 PM by peonuser

Was on a learning to cook theme for a while. That is waning, though there are still a few recipes I would like to try. Now I really want to get into electronics. Most of what I have done has been monkey see monkey do stuff. Mostly in the area of pc parallel port control. Did build a transistor multi-vibrator. My latest simple project is this: May make several and attach them to the pc. Adding a switch of course.

Still want to...
Posted in Uncategorized
Views 406 Comments 0 peonuser is offline


All times are GMT -5. The time now is 07:48 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration