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 List,
How to read the output of a command executed from a script.
For ex.
sample_scritp.sh
-------------
useradd testuser1
password testuser1
....
.....
--------------
This prompts for "password", and "confirm password", for which i need to give the values from script.
Can... (4 Replies)
Hello, in a script i would like to evaluate a command output with a grep, for example, to know if the parameter defined by the user is in the output.
Something like: the_command | grep $1
Please, how is the way to evalulate in this a script, like
if
echo "incorrect parameter, not in... (2 Replies)
diff -yta file1 file2
#!/usr/abc/b/bin/perl5.6 | #!/usr/abc/b/bin/perl5.8
Notable thing about above line is "|" appears at 62nd position. When the same line is assigned in a variable in a ksh script, using
ss=$(diff -yta file1 file2)
it appears as ... (4 Replies)
I have written shell script to send file as an attachemt of email and output of "top -o res" command as email body. it works fine if i execute manually from prompt but it does not send "top -o res" command output in email body when it is executed via crontab. Any suggestions. My script is below:... (5 Replies)
Hi
I would like to write a shell script which replace particular text in output of a shell command. For example : If I execute pwd (if dir is /users/master/) it should display as - /users/Master_directory/.
Also, for generalising the script I would like to receive parameters when I run the... (3 Replies)
i am new to unix shell scripting, could someone please help me. i was asked to develop a unix script and requirement of the script is as follows:
1. In source directory, if any new files are being dropped by external system then an email should be sent out with a message saying "files are... (3 Replies)
Hi Team,
Need a help on how to pipe a command out put to a shell script. My shell script looks like below.
cat shell_script
#!/usr/bin/ksh
input =$@
echo " we are inside the shell script"
echo " here are the input parameters"
..........................
..................
... (11 Replies)
Hi Experts,
I am writing a python script to grep string from file and display output in csv file as in attached screenshot
https://drive.google.com/file/d/1gfUUdfmQma33tz65NskThYDhkZUGQO0H/view
Input file(result_EPFT_config_device)
Below is the python script i have prepared as of... (1 Reply)
Hi All,
I am new to shell scripting, Need your help in creating a shell script which converts any unix command output to JSON format output.
example:
sample df -h command ouput :
Filesystem size used avail capacity Mounted
/dev/dsk/c1t0d0s0 8.1G 4.0G 4.0G 50% /... (13 Replies)
Discussion started by: balu1234
13 Replies
LEARN ABOUT ULTRIX
ccr
ccr(8) System Manager's Manual ccr(8)Name
ccr - remote console carrier requester
Syntax
ccr [ options ] node
Description
The command establishes a logical connection between your ULTRIX system and the console carrier server on a remote system. enables your
terminal to act as the console for a remote unattended system. For example, your terminal can act as the console for a Digital Ethernet
Communications Server (DECSA) and its resident software. The node is the name or address of the target node. A node name consists of from
one to six alphanumeric characters. A node address consist of two decimal integers (n.n), where the first indicates the network number
(1-63), and the second indicates the node address (1-1023).
You can use to force a crash if a server node becomes unresponsive. To determine how to force a crash, see the documentation for the
respective server product.
The requirements for using are as follows:
o The host node (that is, your local ULTRIX node) and the remote node must be on the same Ethernet.
o If your server product is a DECSA, the console carrier server image (plutocc.sys) and its loader file (plutowl.sys) must be located in
on your ULTRIX node. The pluocc.sys and plutowl.sys files are not need, nor is any loading done for other servers. For more details,
see the installation guide for the particular server product.
<CTRL/D> exits from console carrier mode and terminates
Options-c Uses the specified circuit to connect to the target node.
-h Uses the specified address (next argument) as the Ethernet address of the target node.
-n Uses the next argument as the target node ID.
-p Uses the specified service password (next arguments) in accessing the target node.
Examples
# /etc/ccr -c qna-0 -n dallas <RET>
ccr: Remote console reserved
.
.
.
<CTRL/D>
ccr: Remote console released
#
Restrictions
You must have superuser privileges to run
Diagnostics
The command can return the following diagnostic messages:
ccr: Remote console reserved
The command has successfully connected to the remote console server and your terminal is now capable of acting as a console for the remote
node.
ccr: Remote console released
Your connection with the remote console server has been terminated and you are no longer in console carrier mode.
ccr: Remote console already in use
The remote console server that you are attempting to connect to is already reserved by another user.
ccr: Permission denied
You do not have the necessary privileges to run (You must be a superuser.)
ccr: Hardware address required
The command is unable to locate the hardware address of the remote node to which you are attempting to connect. A remote node's hardware
address must be defined either in the command line, or in its nodes database entry. (Nodes database entries are defined with the command.)
ccr: No node entry in database
The command does not recognize the remote node to which you are attempting to connect, since the node-id that you specified is not defined
in the nodes database. (Nodes database entries are defined with the command.)
Files
Console carrier server image
Console carrier server loader
See Alsoaddnode(8), getnode(8), load(8), remnode(8), trigger(8)
Guide to Local Transport Servers
ccr(8)