9 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I have more than 200K files created in year 2017 under directory having size of 50GB.
I want to all these files in one shot.
Is there any faster option available with find command to delete all these file ? (6 Replies)
Discussion started by: sp23029
6 Replies
2. Shell Programming and Scripting
Hi
My directory structure is as below.
dir1, dir2, dir3
I have the list of files to be deleted in the below path as below.
/staging/retain_for_2years/Cleanup/log $ ls -lrt
total 0
drwxr-xr-x 2 nobody nobody 256 Mar 01 16:15 01-MAR-2015_SPDBS2
drwxr-xr-x 2 root ... (2 Replies)
Discussion started by: prasadn
2 Replies
3. Shell Programming and Scripting
Hello All,
The servers in question are AIX/Unix servers. I was hoping to find a scripting solution where I could use one server as a jump server and run a script that would check each server for a user account (the source file for the user accounts would be a text file or csv file) , and delete... (4 Replies)
Discussion started by: k45bryant
4 Replies
4. Shell Programming and Scripting
Is it possible in an ftp script to get remote files based on whether they have been created in the last 30 minutes? (5 Replies)
Discussion started by: gefa
5 Replies
5. IP Networking
I have a website that I use sftp to connect to the root account. I am able to connect to it with
sftp root@domainHowever, when I create a new user, and try to login with this account, it says permission is denied.
I have already checked with my provider, and tech support said they can login... (9 Replies)
Discussion started by: trevthefatty
9 Replies
6. Shell Programming and Scripting
Hello
I have some directories and files created under /export/local/user
I would like to delete directories only under /export/local/user, created before 3 days
Can someone help me with command to do this task?
Thanks (4 Replies)
Discussion started by: needyourhelp10
4 Replies
7. Shell Programming and Scripting
Hello experts,
I have written following script to download files which created today.
Unfortunately, it's not working.
test.ksh:
#Defining variables
USR='xxx'
PASSWD='yyyy'
HT='test.test.com'
FILE='S*.pdf'
XFILE=$(echo find . -type f -mtime 0)
ZFILE=$(echo ls -tR|grep 'Jun 8')... (14 Replies)
Discussion started by: dipeshvshah
14 Replies
8. Shell Programming and Scripting
There is a system logging a huge amount of data and we need to delete some of the older logs .I mean the files that are created before one week from today. Here is a listing of files that are sitting there:
/usr/WebSphere/AppServer/logs
# ls -l
-rw-r--r-- 1 root system 3740694 May... (5 Replies)
Discussion started by: moustafashawky
5 Replies
9. AIX
Ok, somehow i've managed to create two .ksh files with the same name. Impossible i know but somehow i did it by mistake...
I was actually copying a file and renaming it as something else but as i was typing the copy name i hit the delete key by mistake and got the ^? characters in the file name... (9 Replies)
Discussion started by: Jazmania
9 Replies
ftpshut(1) General Commands Manual ftpshut(1)
NAME
ftpshut - create shutdown message file to shut down the ftp servers at a given time
SYNOPSIS
time [ warning-message ... ]
DESCRIPTION
The command provides an automated shutdown procedure that a superuser can use to notify ftp users when the ftp server is shutting down.
This command will create a shutdown message file in the path specified by the 'shutdown' directive in the file in the real, anonymous and
virtual user accounts. For guest accounts the system administrator must copy the message file created in the real user account to the
guest accounts manually. The server will check this file regularly to see if the server is going to be shut down.
This option causes the program to display copyright and version information,
then terminate.
This option is used as deny_offset. New FTP access is disabled 'min' minutes before
shutdown. The default value of 'min' is 10 minutes. This value can be reset by the user.
This option is used as disc_offset. All current FTP connections will be dropped 'min'
minutes before shutdown. The default value of 'min' is 5 minutes. This value can be reset by the user.
time time, is the time at which the ftp server will be shutdown. If is set to the word `now' the shutdown will be immedi-
ate. time can also be set to a future time. Future time can be specified in one of the two formats: + number or
HHMM. The first format brings the ftp servers down in number minutes. The second format brings the ftp servers down
at the time of day indicated, using a 24-hour clock format.
warning-message
The warning-message is the message the server will flash to its clients on shut down. The user can use a message of
his choice or use the 'macros' or 'magic cookies' that are available. The server will replace the macro with the
specified text string. The warning-message will be formatted to be 75 characters long, including the length of any
expanded macros ("magic cookies"). The default warning message is "System shutdown at %s". The following magic cook-
ies are available:
%s time system is going to shut down
%r time new connections will be denied
%d time current connections will be dropped
%C current working directory
%E the maintainer's email address as defined in ftpaccess
%L local host name
%M maximum allowed number of users in this class
%N current number of users in this class
%R remote host name
%T local time (form Thu Nov 15 17:12:42 1990)
%U username given at login time
WARNINGS
You can kill the servers only between now and 23:59, if you use the absolute time for
EXIT STATUS
returns:
0 successful
1 failure
-1 the wrong parameter was passed to
AUTHOR
was developed by the Washington University, St. Louis, Missouri.
SEE ALSO
ftpaccess(4)
ftpshut(1)