11-15-2005
9 More Discussions You Might Find Interesting
1. UNIX and Linux Applications
Hi Friends,
I need your help in understanding this: :rolleyes:
I want to print the error numbers returned by the system calls (not the actual integers but the strings that they match to). The error numbers like EACCESS, ENOMEM, ENOENT etc ...
For eg:
returnCode = open(somefile,... (2 Replies)
Discussion started by: vijaya2006
2 Replies
2. Shell Programming and Scripting
I want to import the info to shell when the connection to remote host was closed . I have follwed by ssh errors but how to use variables in script.
I am thinking out loud the shell script could look as follow:
svnvaraible=$ERROR_SSH_CONNECTION_LOST
if ; then
break
fi (1 Reply)
Discussion started by: Michal Janusz
1 Replies
3. Solaris
I got a Power supply failure. I replaced the power supply and still got the error.
Any ideas on what I should try next? (1 Reply)
Discussion started by: 642fiddi
1 Replies
4. Shell Programming and Scripting
Afternoon ladies and gents,
I am trying to create a simple script to remove a certain file from a user's network profile location. The removal works ok, but in the interest of overkill I would like to add a simple error detection (such as file doesn't exist or permission denied)
Currently, it... (2 Replies)
Discussion started by: hateborne
2 Replies
5. UNIX for Advanced & Expert Users
Do we have common VCS error codes for all platforms.
eg. 10195 Agent(s) for group %s failed on system %s
for all Linux,Solaris and windows ? (1 Reply)
Discussion started by: NIMISH AGARWAL
1 Replies
6. Shell Programming and Scripting
My issue pertains to earlier posts like
exit unix script after sqlerror in procedure - dBforums
SQLPLUS Error Capturing | Unix Linux Forums | Shell Programming and Scripting
We are executing PL/SQL blocks from shell scripts using SQLPLUS. The error code has to be captured into a logfile that... (3 Replies)
Discussion started by: jerome_rajan
3 Replies
7. Shell Programming and Scripting
I have a script which connects to a remote server via FTP and gets some file from there.
#!/bin/bash
/usr/bin/ftp -n remote.hostname.com <<EOF
quote USER user123
quote PASS password123
lcd /dir1/dir2/dir3
cd /
mget file_pattern*
close
bye
EOF
rc=$?
if ]
... (7 Replies)
Discussion started by: dhruuv369
7 Replies
8. Shell Programming and Scripting
Hello.
I use bash functions which are in different script files.
Theses scripts function files are sourced when necessary.
As function does not easily return string value, Value are return using the echo function, and a return code is returned..
Now here my question :
In the main script I... (11 Replies)
Discussion started by: jcdole
11 Replies
9. Shell Programming and Scripting
Hi,
I have been using the SFTP commands in my reusable shell scripts to perform Get/Put operation. The script has a list of 6 errors which i am capturing through the log file using grep command.
But I feel there might me more errors which the script might need to capture. I tried to capture the... (2 Replies)
Discussion started by: Bobby_2000
2 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)