09-20-2013
Q What is the local machine running the script ( OS ) and what is the remote ?
10 More Discussions You Might Find Interesting
1. IP Networking
I was wondering if anybody knew how to make linux and win nt and a novell server integrated there will be no workstations we are trying to get the servers together now we are currently working on Novel and NT and then we want to integrate the linux server into that. We know that we need Samba but... (3 Replies)
Discussion started by: linuxnewbie
3 Replies
2. Linux
Dear all,
I am totally despaired and puzzled.
Using Filezilla under Windows under the same network as our Linux servers is working. Using FTP command-line client under any of our Linux debian servers is not working ! I tried with different FTP servers -> same problem !
All commands are... (12 Replies)
Discussion started by: magix_ch
12 Replies
3. Red Hat
Hi guys, Im not a unix expert so this may be a basic question, I'm using this in solaris to get comm for oracle processes:
$ ps -ef -o comm|grep pmon
ora_pmon_XXXX
ora_pmon_YYYY
but when trying in Linux Im getting:
Warning: bad syntax, perhaps a bogus '-'? See... (2 Replies)
Discussion started by: garagonp
2 Replies
4. Shell Programming and Scripting
Hello,
I am facing a very strange problem when I run my script manuallu ./Fetchcode which is using to connect with MKS integrity from linux end it workks fine but when I run it from cron it doesn't work.Can someone help me
1) How could I check my script when it is running from cron like... (3 Replies)
Discussion started by: anuragpgtgerman
3 Replies
5. Shell Programming and Scripting
Help. My script is working fine when executed manually but the cron seems not to catch up the command when registered.
The script is as follow:
#!/bin/sh
for file in file_1.txt file_2.txt file_3.txt
do
awk '{ print "0" }' $file > tmp.tmp
mv tmp.tmp $file
done
And the cron... (2 Replies)
Discussion started by: jasperux
2 Replies
6. Shell Programming and Scripting
Hi,
I have the following 3 test files to test setuid bit which if it works I would like to implement in our application. However setuid doesnot seem to be having any impact on my test below.Following are the 3 files of interest in /tmp/ folder.
$ ls -ltr *env*
-rw------- 1 g332008 users 6... (23 Replies)
Discussion started by: waavman
23 Replies
7. Red Hat
I am Not sure why following script is not capturing the counts only when using crontab !! when I run it fromt he command line it is fine ! what is missing here !
#!/usr/bin/ksh
host=`uname -n`
tdate=`date`
userid='dbid/password'
totalevents=`sqlplus -s $userid << -
set timing off
... (1 Reply)
Discussion started by: mrn6430
1 Replies
8. Shell Programming and Scripting
Hi,
maybe I'm asking a VERY dumb question, but would anybody out there tell me, why this f****** script won't work if executed as a cronjob, but works fine if executed from a shell prompt?
#! /bin/bash
set PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
date >>... (3 Replies)
Discussion started by: beislhur
3 Replies
9. Shell Programming and Scripting
Hi,
telnet localhost 25
Trying ::1...
Connected to localhost.
Escape character is '^]'.
220 TechBun ESMTP Postfix
This command echo "hi" | mail -v me@mycomp.com does not send mail to my inbox and i get the below output.
Upon investigation i saw this log file tail -f... (3 Replies)
Discussion started by: mohtashims
3 Replies
10. UNIX for Beginners Questions & Answers
Hello,
I am on a Mac and trying to clean up some monthly files with a very simple SED:
sed '3,10d;/<ACROSS>/,$d' input.txt > output.txt
(from the input, delete lines 3 - 10; then delete from the line containing <ACROSS> to the end of the file)
then output to output.txt
Even when I try... (2 Replies)
Discussion started by: verbatim
2 Replies
CON(1) General Commands Manual CON(1)
NAME
con, telnet, cu, rx, xms, xmr - remote login, execution, and XMODEM file transfer
SYNOPSIS
con [ -dCrvs ] [ -l [ remuser ] ] [ -c cmd ] [net!]machine
telnet [ -dCrn ] [net!]machine
cu number
rx [ -n ] [net!]machine [ command-word ... ]
xms file
xmr file
DESCRIPTION
Con connects to the computer whose network address is net!machine and logs in if possible. With no options, the account name used on the
remote system is the same as that on the local system. Standard input and output go to the local machine.
Options are:
-l with an argument causes remuser to be used as the account name on the remote system. Without an argument this option disables auto-
matic login and a normal login session ensues.
-C forces cooked mode, that is, local echo.
-c runs cmd as if it had been typed as a command from the escape mode. This is used by cu.
-v (verbose mode) causes information about connection attempts to be output to standard error. This can be useful when trying to debug
network connectivity.
-d causes debugging information to be output to standard error.
-r suppresses printing of any carriage return followed by a new line. This is useful since carriage return is a printable character in
Plan 9.
-s strips received characters to 7 bits to forestall misinterpretation of ASCII with parity as UTF.
The control- character is a local escape. It prompts with the local machine name and >>>. Legitimate responses to the prompt are
i Send a quit [sic] signal to the remote machine.
q Exit.
b Send a break.
. Return from the escape.
!cmd Run the command with the network connection as its standard input and standard output. Standard error will go to the screen. This
is useful for transmitting and receiving files over the connections using programs such as xms.
Telnet is similar to con, but uses the telnet protocol to communicate with the remote machine. If standard input is a file or a pipe, the
-n option causes telnet not to hang up the connection when it receives EOF on its standard input; instead it waits for the remote end to
hang up. It shares con's -C, -d, and -r options.
Cu is a shell script that uses telco(4) and con to connect to a machine via a modem. If the machine is equipped with a local modem, it is
used. Otherwise, the call is placed through Datakit.
Rx executes one shell command on the remote machine as if logged in there, but with local standard input and output. A rudimentary shell
environment is provided. If the target is a Plan 9 machine, $service there will be rx.
Network addresses for both con and rx have the form network!machine. Supported networks are those listed in /net.
The commands xms and xmr respectively send and receive a single file using the XMODEM protocol. They use standard input and standard out-
put for communication and are intended for use with con.
EXAMPLES
rx kremvax cat file1 >file2
Copy remote file1 to local file2.
rx kremvax cat file1 '>file2'
Copy remote file1 to remote file2.
eqn paper | rx kremvax troff -ms | rx deepthought lp
Parallel processing: do each stage of a pipeline on a different machine.
SOURCE
/sys/src/cmd/con
for con, xms, and xmr.
/sys/src/cmd/ip
for telnet.
/rc/bin/cu
BUGS
Under rx, a program that should behave specially towards terminals may not: e.g., remote shells will not prompt. Also under rx, the remote
standard error and standard output are combined and go inseparably to the local standard output.
CON(1)