Sponsored Content
Top Forums Shell Programming and Scripting ksh shell scripting to copy a file Post 302799373 by david_tech on Friday 26th of April 2013 11:29:17 AM
Old 04-26-2013
ksh shell scripting to copy a file

Hi. I am a new Unix admin and I've been tasked to write a ksh script that copies my .profile into my /home directory on all servers. I'm new to this and having a difficult time scripting it. Any ideas?

Last edited by joeyg; 04-26-2013 at 12:54 PM..
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

file handling with ksh scripting

how can i write content of a variable to a file? how can i read standard output into a variable? (1 Reply)
Discussion started by: gfhgfnhhn
1 Replies

2. Shell Programming and Scripting

Help needed - ksh shell scripting

Hi all, i m new to Unix shell scripting(ksh) i have a requirement, can anyone help me out in this.. spec: i need to move all the files landing in "X" directory to "Y" directory automatically everyday at a particular time.. (5 Replies)
Discussion started by: subbu
5 Replies

3. Shell Programming and Scripting

Solaris KSH shell script to copy all lines from one file to another

Hello, more of a windows wscript guy. However I took a new position that requires me to support some solaris servers. So... issue is that I need to copy all lines from a file to a temporary file and then copy them back into the original file starting at line 1. Reason I need to do this is... (5 Replies)
Discussion started by: ZigZaggin
5 Replies

4. Shell Programming and Scripting

help with ksh shell scripting

I want to run a script that checks the env to see if I'm in a test or prod environment. From the command line I enter echo $host and it returns host name and I can tell by the name if I'm in test or prod. When I run the command from a script I get "not found" What's wrong with the script? if ... (2 Replies)
Discussion started by: Bperl1967
2 Replies

5. Shell Programming and Scripting

How to add trailer record at the end of the flat file in the unix ksh shell scripting?

Hi, How to add trailer record at the end of the flat file in the unix ksh shell scripting can you please let me know the procedure Regards Srikanth (3 Replies)
Discussion started by: srikanth_sagi
3 Replies

6. Shell Programming and Scripting

Use case insensitive variable in ksh shell scripting using sed or awk

I am using a variable called $variable in a pattern search to print from a starting variable to a constant value. the variable search should be case in sensitive. i tired using Ip at the end in the below command. but in ksh it is not working. sed -n "/$variable/,/constant/p" file i also... (11 Replies)
Discussion started by: johnjs
11 Replies

7. Shell Programming and Scripting

Shell Scripting: Copy Files with Today's date

I was wondering the best way about finding files that were created today and copy them to a directory (grep ?). There can be multiple files for todays date or none. I am looking to copy all of the .lis files for todays date. I may need to modify the filename to include todays date but for the... (4 Replies)
Discussion started by: smkremer
4 Replies

8. Shell Programming and Scripting

How to get the consecutive last 10 week day date using UNIX ksh shell scripting?

Hi, i am writing a ksh shell script to check the last month end date whether it is falling in last 10 week day date, I am not sure How to use "Mr. Perderabo's date calculator", Could you Please let me know how to use to get my requirement, I tried my own script but duplicate week day and... (5 Replies)
Discussion started by: karthikram
5 Replies

9. Shell Programming and Scripting

Problem scripting a copy and renaming shell executable

I also posted this on macrumors forum, then i realized that this is a more suitable forum for matters like this. I apologize for the username, I was looking at a bag of doritos when it asked me for a username. lol I need a program (see below for what I've tried) and I think a shell program will... (23 Replies)
Discussion started by: ilovedoritos
23 Replies
globus-rls-admin(8)					      System Manager's Manual					       globus-rls-admin(8)

NAME
globus-rls-admin - Replica Location Service Administration SYNOPSIS
globus-rls-admin -A|-a|-C option value|-c option|-D|-d|-e|-p|-q|-r|-S|-s|-t timeout|-u|-v [ rli ] [ pattern ] [ server ] DESCRIPTION
The program globus-rls-admin performs administrative operations on a RLS server (see globus-rls-server(8)). OPTIONS
-A Add rli to list of RLI servers updated by an LRC server using Bloom filters. Note that partitions are not supported with Bloom fil- ters, the LRC server maintains one Bloom filter for all LFNs in its database, which is sent to all RLI servers configured to receive Bloom filter updates with this option. -a Add rli and optionally pattern to the list of RLI servers that the LRC server sends updates to (using a list of LFNs). If pattern is specified then only LFNs matching it will be sent to rli. If rli is added with no patterns, then it is sent all updates. Pat- tern matching is done using standard Unix file globbing (see fnmatch(3) or sh(1)). -C option value Set server option to value. Note this does not update the configuration file, the next time the server is restarted the configura- tion change will be lost. -c option Retrieve configuration value for specified option from server. If option is "all" then all options are retrieved. -D Remove rli and pattern from list of RLI servers that the RLI server sends updates to. If pattern is not specified then all entries for rli are removed. Note if all patterns are removed separately then rli is sent all updates. To stop any updates from being sent to rli do not specify pattern -d Remove rli and pattern from list of RLI servers that the LRC server sends updates to. If pattern is not specified then all entries for rli are removed. Note if all patterns are removed separately then rli is sent all updates. To stop any updates from being sent to rli do not specify pattern -e Clear LRC database. Removes all lfn,pfn mappings. -p Verifies that the server is responding. -q Cause RLS server to exit. -r Add rli and optionally pattern to the list of RLI servers that the RLI server sends updates to. If pattern is specified then only LFNs matching it will be sent to rli. If rli is added with no patterns, then it is sent all updates. Pattern matching is done using standard Unix file globbing (see fnmatch(3) or sh(1)). -S Show statistics and other information gathered by RLS server. Intended to be input into GRIS. -s Show list of RLI servers and patterns being sent updates by the LRC server. If rli or pattern are not specified they are considered wildcards. -t timeout Set timeout (in seconds) for RLS server requests. Default is 30 seconds. -u Cause LRC server to immediately start full softstate updates to any RLI servers previously added with the -a option. -v Show version and exit. SEE ALSO
globus-rls-server(8), globus_rls_client man pages 23 Apr 02 globus-rls-admin(8)
All times are GMT -4. The time now is 09:30 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy