I am trying to check to see if a file exists on a ftp server, well, I know that cant be done, atleast directly, So I came up with this small script
ftp -n $HOST <<END_SCRIPT
quote USER $USER
quote PASS $PASSWD
cd public_html/crap
dir $FILE
quit
END_SCRIPT
Where the $ variable... (2 Replies)
Hi,
I am currently working on a FTP script which would ftp to extranet servers from intranet server and gather logs based on timestamps in archive logs and by using a wildcard character in the present logs. I have the following in place
AAA="Extranet Server 1:Instance Extranet Server... (2 Replies)
i have this basic line of code that doesn't work. i simply want to get the input parameter strings but when the script is run it appears that the first parameter is assigning the value to the second parameter.
#!/bin/sh
pdir=`pwd`
p1=$1
p2=$2
echo "directory: $pdir\n"
echo "parameter... (2 Replies)
Hi,
I have a script which does multiple tasks in sequence. When i execute the script, it runs and displays lot of messages for each of the steps on the console. Is there any way I can capture those messages and store it for audit purposes ?
Best Regards,
bornon2303 (2 Replies)
Hi Guys,
I am trying to capture the FTP Logs in a log file.
I am using the below code.
ftp -d -n -v $Remote_Host << EOD > $Ftp_LOG;
Since iam running the script in debug mode, i am able to see that the ftp is done and the file has been transferred.
But the log file does not have... (7 Replies)
Hi,
I have been trying to capture console logs from the init script.
When the ramfs is mounted, i check if usb is connected , if conncted, i mount it and redirected the console logs like so:
cat & /dev/ttyS1 >> /mnt/logs.txt
I'm getting
/bin/sh : /dev/ttyS1 :permission denied
... (8 Replies)
I have two set of questions.
1) To skip killing some process automatically.
2) To kill other process and capture their log.
I have set of process, some needs to be killed gracefully and others should be skipped.
Listed are the process.
adm 1522... (1 Reply)
Hello All,
I am writing a shell script which will run on build server where multiple users can login.These users can run this script at the same time.
I want to capture the name of the user who ran the script for every instance.How can I do that ?
Regards,... (1 Reply)
Hi Guys, I'm very new to Shell scripting and have to design a code which I'm not able to find a way to. I will try to explain the aim in detail and shall be obliged if anyone could help me with the coding snippet.
I have an input file who's every row has a few details about an autosys Job. I shall... (0 Replies)
Hi Guys, I'm very new to Shell scripting and have to design a code which I'm not able to find a way to. I will try to explain the aim in detail and shall be obliged if anyone could help me with the coding snippet.
I have an input file who's every row has a few details about an autosys Job. I shall... (1 Reply)
Discussion started by: Crusnik02
1 Replies
LEARN ABOUT DEBIAN
netio230a-cli
NETIO230A-CLI(1) General Commands Manual NETIO230A-CLI(1)NAME
netio230a-cli - CLI to python-netio230a
SYNOPSIS
netio230a-cli [--host HOST] [--port PORT] [--username USERNAME] [--password PASSWORD] -s SOCKET [--on]
DESCRIPTION
netio230a-cli is a command line interface to access the Koukaam NETIO-230A, a cheap but advanced multiple socket with Ethernet control.
Options:
-?
show help message and exit
-h HOST, --host=HOST
Hostname for the device (defaults to the first one found by the discovery in your LAN)
-p PORT, --port=PORT
TCP port (defaults to 1234)
-u USERNAME, --username=USERNAME
username to use for login (defaults to admin)
-w PASSWORD, --password=PASSWORD
password to use for login (will ask if left empty)
-s SOCKET#, --socket=SOCKET#
socketnumber (1-4) to switch on/off
--on
switch on when --on set, off if omitted
AUTHOR
netio230a-cli was written by Philipp Klaus <philipp.l.klaus@web.de>.
This manual page was written by Philipp Huebner <debalance@debian.org>, for the Debian project (and may be used by others).
SEE ALSO netio230a-discover(1), netio230a-gui(1)netio230a-cli 2010-03-09 NETIO230A-CLI(1)