Thanks alot for your help and affords, At last the script is ment successfully.
If database shutdown in windows database send email with the help of the below scripts (reading last five lines of alert logfile If found "shutdown" contents send email)
Hi
i need to FTP files from windows to unix(sun) machine using script. what are the scripts commands i need to use to transfer files
Thanks (2 Replies)
Hi,
I have a mail server with limited space and operating system is sun solaris 8 (sparc). I do not have provisions to increase the space for home directory.
So i have to delete files from /home/username/mail/trash which are more than 10 days old automatically.
So my script should be like... (1 Reply)
I have a .sh script which was running fine on all the UNIX Servers (AIX, SunSolaris). The script requires two mandatory parameters and many optional parameters. Now at a different client place who are on a Windows Server, when I try to execute the script through MKS Toolkit, there are couple of... (5 Replies)
Can anybody please tell me how to configure linux to receive snmp traps from a windows server? I am not able to receieve snmp traps on unix machines specifically linux and solaris. I have tried starting snmptrapd service on linux but it didn't work. Is there anything special that I have to do on... (2 Replies)
Hi Friends,
I have this script for ftping files from AIX server to local windows xp.
#!/bin/sh
HOST='localsystem.net'
USER='myid_onlocal'
PASSWD='mypwd_onlocal'
FILE='file.txt' ##This is a file on server(AIX)
ftp -n $HOST <<END_SCRIPT
quote USER $USER
quote PASS $PASSWD
put $FILE... (1 Reply)
Can anybody please help me on how to code for the below requirement:
I need to write a shell script (on different unix server) to copy files from multiple folders (ex. BRN-000001) from one windows server (\\boldls-mwe-dev4)to a different windows server(\\rrwin-ewhd04.ecomad.int). This shell... (4 Replies)
I have a Perl script that worked fine before moving it to justhost.com. It was on a Windows/Apache server. Just host is using UNIX. Other Perl scripts on other sites that were also moved work fine so I know Perl is functioning.
The script is called cwrmail.pl and is located in my cgi-bin.
When I... (9 Replies)
Hi,
I've created a very basic script to run apt-get update and apt-get dist-upgrade unattended (run with cron) and save the logs. Though, it's not really a script, just a file containing the commands to run in order: pasteit .com/18601
I'm currently testing this and ran into some unexpected... (4 Replies)
I am trying to connect to Windows server via Linux server through a script and run two commands " cd and ls " But its giving me error saying " could not start the program" followed by the command name i specify e g : "cd"
i am trying in this manner "
ssh username@servername "cd... (5 Replies)
Hi my name is Manju.
->I have configure the two way authentication on my linux server.
->Now I am able to apply two way authenticator on particuler user.
->Now I want to map this linux server to my AD server.
->Kindly tell me how to map AD(Active Directory) with this linux server.
... (0 Replies)
Discussion started by: manjusharma128
0 Replies
LEARN ABOUT PHP
ftpaddhost
ftpaddhost(1M) System Administration Commands ftpaddhost(1M)NAME
ftpaddhost - set up a virtual FTP host
SYNOPSIS
ftpaddhost -c | -l [-b] [-x xferlog] hostname root_dir
DESCRIPTION
The ftpaddhost script is executed by the super user to set up virtual FTP hosts. The ftpaddhost command configures the virtual host host-
name under directory root_dir. The value of hostname can be an IP address or the name of a host.
OPTIONS
The ftpaddhost script supports the following options:
-b Create a banner for the virtual host. This option is useful to confirm that the virtual host is working.
-c Configure complete virtual hosting. This option allows each virtual host to have its own version of the ftpaccess,
ftpconversions, ftpgroups, ftphosts, and ftpusers files. The master version of each of these configuration files is
copied from the /etc/ftpd directory and placed in the /etc/ftpd/virtual-ftpd/hostname directory. If the
/etc/ftpusers file exists it is appended to the virtual ftpusers file. If a virtual host lacks its own version of a
configuration file, the master version is used.
-l Configure limited virtual hosting. This option allows a small number of parameters to be configured differently
for a virtual host. See the virtual keyword on the ftpaccess(4) manual page.
-x xferlog Create a logfile entry such that the transfer logs for the virtual host are written to the specified file. An abso-
lute path must be specified for the xferlog file.
OPERANDS
The following operands are supported:
hostname The host name or IP address of the virtual server.
root_dir The absolute pathname of the directory under which the virtual server is set up.
EXIT STATUS
The following exit values are returned:
0 Successful completion
1 Improper usage of the command
2 Command failed
FILES
/etc/ftpd/virtual-ftpd/hostname The configuration files directory for the virtual host hostname.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWftpu |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
SEE ALSO ftpconfig(1M), in.ftpd(1M), ftpaccess(4), ftpconversions(4), ftpgroups(4), ftphosts(4), ftpusers(4), xferlog(4), attributes(5)SunOS 5.10 1 May 2003 ftpaddhost(1M)