04-22-2020
Hi:
I'm pretty new in unix. Could you please send me the full code and explain how it's gonna work.
Thanks!
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am trying to use a here document to automate testing a perl script however when the perl script hits a system(perl subscript.pl) call, input is no longer entered into this subscript.
here is my script
$ cat test.sh
#ksh
for testcase
do
program <<-EOF | tee -a funcscnlog.log
y... (3 Replies)
Discussion started by: hogger84
3 Replies
2. Shell Programming and Scripting
Hi All,
I need to write a UNIX script that automates the sftp process. I should be able to do a sftp to a secure box and get a file from there. I am having a problem doing this because no matter what I do, when I run my script, I get a prompt at command line asking for a password. How could I... (34 Replies)
Discussion started by: priyamurthy2005
34 Replies
3. Shell Programming and Scripting
Hi All,
./procdure.ksh which opens the below the menu, I want to build a script which will press 4 and run the Sector Data Automatically (instead of pressing option 4 manually)
Is there any way for this, please let me know...
1) FX Rates MDU 9) Fidessa Cash... (7 Replies)
Discussion started by: niceboykunal123
7 Replies
4. Shell Programming and Scripting
hi friends,
I am trying to automate the daily monitoring process of UNIX server and it's processes. the script are below
i executed the above script using ksh -x monitortest1.sh in root login . It shows error at some lines .
1. i logged in using root ,but it... (8 Replies)
Discussion started by: rdhaprakasam
8 Replies
5. AIX
Hi,
Could you please help to solve the below issue...
my requirement is automate the SFTP between UNIX and Windows server.
I want to get and put some files to UNIX AIX machine(SFTP client) to Windows server(SFTP server).
For that, i have generated key pair (private/public) in my AIX machine .... (6 Replies)
Discussion started by: mahiban
6 Replies
6. Shell Programming and Scripting
Hi,
New member here looking for help. This might not be a post for the 'VERY basics' section, so feel free to move it to somewhere more appropriate.
I've created a script that searches my computer for video files, creates a list of these files, and selects a number of random entries to play in... (2 Replies)
Discussion started by: uncertain
2 Replies
7. Shell Programming and Scripting
Hi All,
Can I automate a script when some one trying to 'vi' (open) a file.
For Example, I am having a file named 'SecuredShell.sh'.
when a user types " vi SecuredShell.sh " in unix command prompt a script named secure.sh needs to be automated.
Can this be possible. if Yes please guide... (2 Replies)
Discussion started by: little_wonder
2 Replies
8. Shell Programming and Scripting
Hi all,
I have a task on my plate which is of high priority.
I need an automated email alert that checks FTP notices subdirectory on a daily basis and forwards any word files to a group of people. This word files gets created whenever there is an issue with FTP connectivity.
Please help...... (1 Reply)
Discussion started by: stunnerz_84
1 Replies
9. Shell Programming and Scripting
Hi all,
I need to execute a script on a remote machine that are connected to the network.The basic requirement is to write a script which will login in remote machine and then execute the other script automatically placed in remote machine.So that I need to execute the remote machine script... (3 Replies)
Discussion started by: smartgupta
3 Replies
10. Windows & DOS: Issues & Discussions
Dear all,
I I want to login to my Linux machine using putty and then run some script from Windows machine.we can do it after loging it and then execute the script by typing it in putty command line screen. but I want to automate it.So whenever I will fire this script,it will do the following... (4 Replies)
Discussion started by: smartgupta
4 Replies
uucp(1c) uucp(1c)
Name
uucp, uulog, uuname - unix to unix copy
Syntax
uucp [option...] source-file... destination-file
uulog [option...]
uuname [option...]
Description
The command copies files named by the source-file arguments to the destination-file argument. A file name either may be a path name on
your machine or may have the form
system-name!pathname
where `system-name' is taken from a list of system names which knows about. Shell metacharacters ?*[] appearing in the pathname part will
be expanded on the appropriate system.
Pathnames may be a full pathname, a pathname preceded by ~user, where user is a userid on the specified system and is replaced by that
user's login directory, or anything else prefixed by the current directory.
If the result is an erroneous pathname for the remote system, the copy will fail. If the destination-file is a directory, the last part of
the source-file name is used. If a simple ~user destination is inaccessible to data is copied to a spool directory and the user is noti-
fied by
The command preserves execute permissions across the transmission and gives 0666 read and write permissions. For further information, see
Options
The following options are interpreted by
-d Creates all necessary directories for the file copy.
-c Uses the source file when copying out rather than copying the file to the spool directory.
-m Sends you mail when the copy is complete.
-nrec
Sends mail to the recipient.
-W Expands only local files. Normally files names are prepended with the current working directory if a full path is not specified. The
-W tells to expand local files only.
The command prints a summary of and transactions that were recorded in the file
The options cause to print logging information:
-ssys
Displays information about work involving specified system.
-uuser
Displays information about work involving specified user.
The command lists the uucp names of known systems.
-l Lists local system name.
Warnings
The domain of remotely accessible files can (and for obvious security reasons, usually should) be severely restricted. You will very
likely not be able to fetch files by pathname. Ask a responsible person on the remote system to send them to you. For the same reasons,
you will probably not be able to send files to arbitrary pathnames.
Restrictions
All files received by will be owned by uucp.
The -m option will only work sending files or receiving a single file. (Receiving multiple files specified by special shell characters
?*[] will not activate the -m option.)
Files
/usr/spool/uucp - spool directory
/usr/lib/uucp/* - other data and program files
/etc/acucap - shared autodial modem database
See Also
mail(1), uux(1c), acucap(5)
"Uucp Implementation Description," ULTRIX Supplementary Documentation, Vol. III:System Manager
uucp(1c)