Sponsored Content
Full Discussion: Script information needed
Top Forums UNIX for Dummies Questions & Answers Script information needed Post 302151818 by chris1234 on Monday 17th of December 2007 01:11:23 PM
Old 12-17-2007
Script information needed

Transferring files from one unix server to another one was easy for me. I used a relative path which worked for me. thanks to porter.

My question now is that:-

1)Say for instance i have one unix server with name(ABC). PATH: /home/web/props . I have bunch of different users folders in that props directory. for eg dia/downloads or alex/downloads.. etc..

2) I have another unix server (XYZ). URL: /home/webapps/users

What i wanted to do is copy whatever is inside /home/web/props from ABC unix server to XYZ unix server under /home/web/webapps. If its a new user then create a directory by the same name under XYZ.

Hope you all can understand. Is it possible? how any clues? any links i can read

Bottom Line: I would like to copy each and every folder under props directory from ABC unix server to XYZ unix server. If directory exist then just do a simple secure transfer copy if not then create a directory.
Thanks
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Sun Solaris information needed

Hello everyone. I wont waste anytime and I will get right to the point. I've been working with Linux for about 7 months and started using OpenBSD and FreeBSD for about 2 months. I have a very strong background in Microsoft (MCSE). I plan to continue working with Microsoft as it's one entity... (10 Replies)
Discussion started by: tarballed
10 Replies

2. Shell Programming and Scripting

Script execution information

I want to catch the execution information of a script by calling it from another script.... script_main: #! /bin/ksh ksh -x script2.ksh >> tmplog .... but this doesn't give me anything but the error msgs of script in tmplog. can anyone pls suggest which is the right method? The... (12 Replies)
Discussion started by: manthasirisha
12 Replies

3. UNIX for Dummies Questions & Answers

Information needed

As part of a school project I'm supposed to make a webpage on operating systems (Other than windows) and the three I was told to do were Linux, Unix, and Mac. I got Linux and Mac done pretty easily because I use them a lot but Unix is showing some problems. Could anyone give me some information on... (2 Replies)
Discussion started by: Shinjin
2 Replies

4. UNIX for Dummies Questions & Answers

Help regarding saving information within a script!

I have 2 files. File 1 exports variables globally, File 2 pulls in the information into itself and displays it. I need to know how to then save the information into the bottom of File 2, allowing for more information to be added at a later date. The scripts i've written are below. File 1:... (8 Replies)
Discussion started by: phproxy
8 Replies

5. UNIX for Dummies Questions & Answers

User information script

Hi Guys, I just started learning unix and was wondering if anyone can assist me with my User info script.The script file lets the user input their personal information (Their name, address, phone number etc...). The script will then ask the user to input the info again if the input is incorrect... (2 Replies)
Discussion started by: rc1138
2 Replies

6. Shell Programming and Scripting

script to collect all db information

hi all I am looking for shell script ,by which i need to gather all the DB information in Sybase server . Thanks in advance :) (3 Replies)
Discussion started by: mvsramarao
3 Replies

7. Shell Programming and Scripting

Script to compact information !

Hello Group, Could you please help me with a shell script that condense in this case each 12 rows of hour information in only one row per day as following: Final Fields in each row 1.Ticker Name 2. D (Daily) 3. Date 4. Open Price (The open price of the first record of the day) 5. High... (13 Replies)
Discussion started by: csierra
13 Replies

8. UNIX for Dummies Questions & Answers

Write a script to extract information from a db

Hi I need to put together a script that will search certain tables in a db and send that data to a csv file. Basically I am importing data to a db and I want to write a script to check that all information was imported correctly. Thank you (1 Reply)
Discussion started by: ladyAnne
1 Replies

9. Shell Programming and Scripting

Expect script help needed- script failing if router unavailable

Hey all. Sometimes I'm tasked to change some router configs for the entire network (over 3,000 Cisco routers). Most of the time its a global config parameter so its done with a loop and an IP list as its the same configuration change for all routers. This is working OK. However, sometimes an... (3 Replies)
Discussion started by: mrkz1974
3 Replies

10. Shell Programming and Scripting

script for RAC information required

Hello, is it possible for someone to generate a shell script that will do the following, please. UNIX Shell script novice who is after a script to look at a few things within an Oracle RAC environment Hopefully if this works, I can schedule this via cron Many thanks I can execute these... (3 Replies)
Discussion started by: jnrpeardba
3 Replies
socklog(8)						      System Manager's Manual							socklog(8)

NAME
socklog - small and secure syslogd replacement for use with runit SYNOPSIS
socklog [-rRU] [unix] [path] socklog [-rR] inet [ip] [port] socklog [-rR] ucspi [args] DESCRIPTION
socklog is run under runit's runsv(8), writing syslog messages it receives from unix domain socket path or an inet udp socket ip:port through a pipe provided by runsv(8) to a svlogd(8) process. socklog can be run as an ucspi application to listen to an unix domain stream socket and for more flexible distributed logging. If the environment variables $UID and/or $GID are present, socklog drops permissions to those ids after creating and binding the socket (not in ucspi mode). socklog converts syslog facility and priority information to names (facility.priority:) as found in /usr/include/syslog.h at compile time if present. On solaris socklog also accepts sun_stream as first argument. Please see the web page for details. UNIX SOCKET
socklog [ unix ] [ path ] Starting socklog with the 1st argument unix, socklog will listen to the unix domain socket path. If path is omitted, the default /dev/log is used. The 1st argument may be omitted, default is unix. INET SOCKET
socklog inet [ ip ] [ port ] Starting socklog with the 1st argument inet, socklog will listen to the inet udp socket ip:port. If ip starts with 0, socklog will bind to all local interfaces. If port is less or equal 1024, socklog must be run by root. port may be omitted, default is 514. ip may be omitted, default is 0. socklog prepends a.b.c.d: to each syslog message it receives, where a.b.c.d is the ip address of the connecting system. UCSPI MODE
socklog ucspi [ args ] Starting socklog with the 1st argument ucspi, socklog will run as an ucspi application. Normally socklog will only be started in ucspi mode by an ucspi server tool, such as tcpsvd(8), tcpserver(1) or unixserver. For each arg, socklog will prepend $arg: to each syslog message, if the environment variable $arg is present (maximum is 8). OPTIONS
-r raw. Write the raw syslog messages (no conversion of facility and priority) to the pipe, additionally to the log messages with sys- log facility and priority converted to names. -R raw only. Same as -r above, but write the raw syslog messages only. -U respect umask. Don't set umask to 0 before creating a unix domain socket, but respect the current setting of umask(2). This option only takes effect in unix mode. SEE ALSO
sv(8), runsvdir(8), runsv(8), svlogd(8), tryto(1), uncat(1), socklog-check(8), tcpsvd(8), nc(1) http://smarden.org/socklog/ http://smarden.org/runit/ AUTHOR
Gerrit Pape <pape@smarden.org> socklog(8)
All times are GMT -4. The time now is 09:22 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy