10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have tried a lot, Need your help guys.
SAS Program:
data one ; /* Data step */
Input name $; /*Dec variables*/
I want to remove the commented part(/* Data step */) alone. I have tried using sed command but it is deleting the entire line itself. i need unix command to separate this and... (6 Replies)
Discussion started by: saaisiva
6 Replies
2. UNIX for Dummies Questions & Answers
I have tried a lot, Need your help guys.
SAS Program:
data one ; /* Data step */
Input name $; /*Dec variables*/
I want to remove the commented part(/* Data step */) alone. I have tried using sed command but it is deleting the entire line itself. i need unix command to separate this and... (1 Reply)
Discussion started by: saaisiva
1 Replies
3. Shell Programming and Scripting
HI,
Need to ftp a bunch of files in a directory in batch mode. TRying to ftp a single file first with below code.
#!/bin/ksh
function ftp_files
{
ftp -n ${D2_SRVR} <<-EOF
quote user ${D2_UID}
quote pass ${D2_PWD}
cd ${D2_DIR}/${D2_NAME}
lcd ${D1_DIR}/${D1_NAME}/dml/
put file1
... (6 Replies)
Discussion started by: cvsanthosh
6 Replies
4. UNIX for Dummies Questions & Answers
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
5. UNIX for Dummies Questions & Answers
hi all,
iam using unix command in the basesas programming.
i need to delete one folder which is dynamically creating when SAS script runs.
rm -rf " dynamic foldername"
iam not able to delete the folder it is saying
rm: cannot remove directory `test_lin_prod_06_20091211_0516':... (2 Replies)
Discussion started by: bbc17484
2 Replies
6. Windows & DOS: Issues & Discussions
Hi there
I want to create a batch file which Get (mget) the newly added Files only from specific directory on UNIX server to specific folder on windows server using FTP, and this batch file will be scheduled on the windows server to run daily to load the new files (load the newly added files... (1 Reply)
Discussion started by: alsharq
1 Replies
7. Windows & DOS: Issues & Discussions
Hi there
I want to create a batch file which Get (mget) the newly added Files only, from specific directory on UNIX server to local folder on windows server through FTP, and this batch file will be scheduled to run daily to load the new files.
help me plz :confused: (1 Reply)
Discussion started by: alsharq
1 Replies
8. UNIX for Dummies Questions & Answers
I'm new to the forum, so I appreciate any help you can give me. I have been at an academic institution that manages its own UNIX computing grid for running SAS. I use a Mac as my personal computer and connect remotely using an ssh terminal to conduct my analysis and store/manage my files.
I'm... (3 Replies)
Discussion started by: crl21
3 Replies
9. UNIX for Dummies Questions & Answers
Hello, I am a UNIX newbie and this is my first posting.
I need to create a batch command file to ftp from Sun/Solaris to AS/400.
Here is an example file:
ftp -d -i -n -v 172.28.16.22
pwd
ls
binary
quit
This is the result of executing the command file:
Connected to... (10 Replies)
Discussion started by: pietro
10 Replies
10. UNIX for Dummies Questions & Answers
Hey all,
Does anyone know if Unix has an equivalent to a batch file? And if so, does it work the same way as a batch file under windows?
AND, if you can answer that one, is it possible to run such a file under HP-UX and have it execute while in an FTP command line? What I need to do is... (4 Replies)
Discussion started by: ober5861
4 Replies
ncftpbatch(1) General Commands Manual ncftpbatch(1)
NAME
ncftpbatch - Individual batch FTP job processor
SYNOPSIS
ncftpbatch -d
ncftpbatch -l
ncftpbatch -D
OPTIONS
Command line flags:
-d Begin background processing of FTP jobs in the current user's $HOME/.ncftp/spool directory. This returns immediately, because a
daemon process is spawned and ran in the background.
-l Lists the contents of the user's job queue.
-D This is like -d, except that the process does not become a daemon.
DESCRIPTION
This program is responsible for processing background FTP requests. It is normally only run by ncftp and not manually by a human being,
however you can run it to manually process the FTP job queue.
The jobs are spool files written to a user's $HOME/.ncftp/spool directory and have a special format and file-naming convention (which con-
tains when the job is to be run). ncftp runs this program when it needs to, but if the ncftpbatch daemon dies unexpectedly the jobs that
are left in the queue will not be processed until another instance of ncftpbatch is run.
ncftpget and ncftpput can also be used to submit jobs for batch processing, using those utilities' -b command-line flag. If desired, you
can also manually create the spool files although this procedure is not documented here (see the manual page for ncftpspooler for more
information on how to do that).
DIAGNOSTICS
ncftpbatch writes to its own log file, the $HOME/.ncftp/spool/log file. This file should be examined to determine if any ncftpbatch pro-
cesses are actively working on jobs.
AUTHOR
Mike Gleason, NcFTP Software (mgleason@ncftp.com).
SEE ALSO
ncftp(1), ncftpput(1), ncftpget(1).
Software NcFTP ncftpbatch(1)