Sponsored Content
Top Forums UNIX for Dummies Questions & Answers .netrc multiple ftp jobs to same machine Post 17933 by Perderabo on Thursday 21st of March 2002 09:32:08 AM
Old 03-21-2002
Scroll down a bit from that post I referenced...its all there. Smilie
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

.netrc and ftp issue

Ok guys (gals?) Im new here as a member, but have come here many times to find answers to questions. Have played with Unix (ATT Sys 5) and now Linux (RH)... I told myself I wanst going to ask for help on the current project..but.. I am down to what I think is the last issue: (and I KNOW the... (3 Replies)
Discussion started by: txdave
3 Replies

2. AIX

.netrc and ftp

Hello all, I am using a .netrc to automatically access an ftp host. Here is the line I use... machine 412.blank.com login nw\mylogin password ******* when I use this command... ftp 412.blank.com I get... Connected to 412.blank.com. 220 server_7 FTP server (EMC-SNAS: 5.5.25.2)... (4 Replies)
Discussion started by: magikalpnoi
4 Replies

3. Shell Programming and Scripting

FTP/nmap/.netrc

So... I'm trying to script and FTP Backup of some files from openVMS Alpha machine to a Unixware 7 machine. I decided to use .netrc to do all the FTP actions however when I send the nmap command. It pretty much gets ignored while even other things such "ascii", "case" etc.. get respected... (0 Replies)
Discussion started by: thesubmitter
0 Replies

4. Shell Programming and Scripting

Automated FTP script using .netrc to multiple FTP servers

Hi all, I'm using the following script to automated ftp files to 1 ftp servers host=192.168.0.1 /usr/bin/ftp -vi >> $bkplog 2>&1 <<ftp open $host bin cd ${directory} put $files quit ftp and the .netrc file contain machine 192.168.0.1 login abc... (4 Replies)
Discussion started by: varu0612
4 Replies

5. AIX

.netrc and Automatic ftp problem

Guy's We have two AIX servers Server1 and Server2 and we have created user1 in Server1 and Server2 ... and .netrc file was confiured under /home/user1 with the below line machine server2 login user1 password abc1234567 -rw------- 1 user1 staff 159 Sep 28 2004 .netrc ... (7 Replies)
Discussion started by: ITHelper
7 Replies

6. Shell Programming and Scripting

Automating ftp without .netrc

I'm writing a script which needs to run under an 'automation' account and there is already a .netrc machine definition for the server I need to connect to. If I create a new machine entry in the .netrc with a different account this will, of course, be ignored and the ftp session will connect to... (3 Replies)
Discussion started by: DeepakS
3 Replies

7. IP Networking

Can I use 2 different id's in .netrc for same dest. machine.

I have 2 different id's for an ftp destination. Each id handles files differently on the destinations end. Is it possible to have one destination machine and assign an alias name for each id. The .netrc file doesn't allow this. (2 Replies)
Discussion started by: wangotango
2 Replies

8. UNIX for Dummies Questions & Answers

Performing Batch ftp without .netrc

How can I supply the userID/password when executing FTP in the batch mode? Using .netrc is not an option (prohibited per Corporate Policy). Thank you in advance. (1 Reply)
Discussion started by: compaamat
1 Replies

9. Shell Programming and Scripting

Specifying port for ftp when using .netrc

Hi, does anybody know if it is possible to specify a particular port for an FTP address within a .netrc file ? i have a script which opens the ftp to a machine and then instigates .netrc to login etc.. within .netrc i need it to go to a particular port to enable me to automate the dropping of... (2 Replies)
Discussion started by: forefather1977
2 Replies

10. Shell Programming and Scripting

Shell script to run multiple jobs and it's dependent jobs

I have multiple jobs and each job dependent on other job. Each Job generates a log and If job completed successfully log file end's with JOB ENDED SUCCESSFULLY message and if it failed then it will end with JOB ENDED with FAILURE. I need an help how to start. Attaching the JOB dependency... (3 Replies)
Discussion started by: santoshkumarkal
3 Replies
BITSTRING(3)						   BSD Library Functions Manual 					      BITSTRING(3)

NAME
bit_alloc, bit_clear, bit_decl, bit_ffs, bit_nclear, bit_nset, bit_set, bitstr_size, bit_test -- bit-string manipulation macros SYNOPSIS
#include <bitstring.h> bitstr_t * bit_alloc(int nbits); bit_decl(bitstr_t *name, int nbits); bit_clear(bitstr_t *name, int bit); bit_ffc(bitstr_t *name, int nbits, int *value); bit_ffs(bitstr_t *name, int nbits, int *value); bit_nclear(bitstr_t *name, int start, int stop); bit_nset(bitstr_t *name, int start, int stop); bit_set(bitstr_t *name, int bit); int bitstr_size(int nbits); int bit_test(bitstr_t *name, int bit); DESCRIPTION
These macros operate on strings of bits. The macro bit_alloc() returns a pointer of type ``bitstr_t *'' to sufficient space to store nbits bits, or NULL if no space is available. The macro bit_decl() allocates sufficient space to store nbits bits on the stack. The macro bitstr_size() returns the number of elements of type bitstr_t necessary to store nbits bits. This is useful for copying bit strings. The macros bit_clear() and bit_set() clear or set the zero-based numbered bit bit, in the bit string name. The bit_nset() and bit_nclear() macros set or clear the zero-based numbered bits from start to stop in the bit string name. The bit_test() macro evaluates to non-zero if the zero-based numbered bit bit of bit string name is set, and zero otherwise. The bit_ffs() macro stores in the location referenced by value the zero-based number of the first bit set in the array of nbits bits refer- enced by name. If no bits are set, the location referenced by value is set to -1. The macro bit_ffc() stores in the location referenced by value the zero-based number of the first bit not set in the array of nbits bits ref- erenced by name. If all bits are set, the location referenced by value is set to -1. The macros bit_clear(), bit_set() and bit_test() will evaluate the bit argument more than once, so avoid using pre- or post-, increment or decrement. The arguments to the other macros are evaluated only once and may safely have side effects. EXAMPLE
#include <limits.h> #include <bitstring.h> #define LPR_BUSY_BIT 0 #define LPR_FORMAT_BIT 1 #define LPR_DOWNLOAD_BIT 2 #define LPR_AVAILABLE_BIT 9 #define LPR_MAX_BITS 10 make_lpr_available() { bitstr_t bit_decl(bitlist, LPR_MAX_BITS); ... bit_nclear(bitlist, 0, LPR_MAX_BITS - 1); ... if (!bit_test(bitlist, LPR_BUSY_BIT)) { bit_clear(bitlist, LPR_FORMAT_BIT); bit_clear(bitlist, LPR_DOWNLOAD_BIT); bit_set(bitlist, LPR_AVAILABLE_BIT); } } SEE ALSO
malloc(3) HISTORY
The bitstring functions first appeared in 4.4BSD. 4th Berkeley Distribution July 19, 1993 4th Berkeley Distribution
All times are GMT -4. The time now is 01:05 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy