Script connect to remote server, not find files and exit only from remote server, but not from scrip
I have a script, which connecting to remote server and first checks, if the files are there by timestamp. If not I want the script exit without error. Below is a code
The problem is that exit (which I put in read bold) exit only from remote server and continue run program, until scp tar file. It fails because we don't create it.
Could you please advice me to make a logic to exit from the script, if there are no files on remote server?
Thanks for contribution
---------- Post updated at 11:15 AM ---------- Previous update was at 10:25 AM ----------
Hi all,
I am trying to connect to Remote Sybase database Server through shell script. I am operating on WindowsXP, connect to Unix(version SunOS: 5.8)
The thing is i dont know how to connect to Sybase Server through my script file?
Are there any manual pages which can guide me through the... (2 Replies)
Hi all,
I am trying to connect to Remote Sybase database Server through shell script. I am operating on WindowsXP, connect to Unix(version SunOS: 5.8)
The thing is i dont know how to connect to Sybase Server through my script file?
Are there any manual pages which can guide me through the... (3 Replies)
i want to connect to a remote server through ssh.
i have to also provide password within that script.
after connecting to the remote server i want to do some operations like grep,cd etc
can u pls help me to wite a script.
Thanks (1 Reply)
Hello All
I need a script or set of commands which can establish a remote connection with another server and execute some scripts over there. Basically it has to establish the connection with the remote server as an user ,say 'testuser' and then execute the script 'testscript'. and return the... (5 Replies)
hi,
I am using the below line to run a script from remote server(say server A) to another server(say server B).
ssh username@servername ksh script name.
The issue is the script logs into server B, executes the script on server B, transfers the file to server A but does not exit from... (4 Replies)
I am trying to connect to remote server in hp-ux, using sftp command (using sftp username@ip and password ) able to connect to remote server but, in this case sftp prompt for password and user need to manually enter it.
I want sftp can read a password define in script or from file, so it can... (1 Reply)
Hi,
I am trying to automate the process of fetching files from remote server to local server through sftp. I have the username and password for the remote solaris server. But I need to give password manually everytime i run the script.
Can anyone help me in automating the script such that it... (3 Replies)
Hi,
i need help on shell scripting.
Main intention of the script is
step 1: ssh to remote server
Step 2: cd /tmp in remote server
Step 3: in tmp i want to grep only files and directories which are in GB sizes
All the servers list file is - tmpsrv.txt
vi tmpsrv.txt
... (17 Replies)
Hello Every one!!
I am trying to write a shell script which will connect to a remote server and execute scripts which are at a certain path in the remote server.
Before this I am using a sudo command to change the user.
The place where I am stuck is, I am able to connect to the... (6 Replies)
i have a "if .. then exit end " in s shell script on remote servers.
now the connection to the remote server got killed after i run this script on the remote servers. How do i run this script on remote hosts and still keep remote connections alive after executing the script.
Thank you. (10 Replies)
Discussion started by: moonmonk
10 Replies
LEARN ABOUT DEBIAN
ods-server
ODS-SERVER(1) User Commands ODS-SERVER(1)NAME
ods-server - minimal OBEX server based on obex-data-server
SYNOPSIS
ods-server [options] profile path
DESCRIPTION
ods-server provides a minimal OBEX server based on obex-data-server for receiving files over bluetooth. profile selects the UUID-128 pro-
file ID to use, currently opp and ftp can be used as aliases for object push and obex ftp respectively. path is the target directory for
received files.
OPTIONS -h, --help
show this help message and exit
-l ADDRESS, --local=ADDRESS
ADDRESS of Bluetooth adapter to listen on. Default is 00:00:00:00:00:00
-p, --pairing
Require remote devices to be paired before allowing them to connect. Disabled by default
-r, --readonly
Disallow any write operations. Allowed by default
-t, --thumbnails
Require remote device to send thumbnails when using Imaging (BIP) server
-a, --ask-to-accept
Prompt user to accept or reject every file. By default all files are accepted
AUTHOR
ods-server was written by Tadas Dailyda <tadas@dailyda.com> and is shipped as ods-server-test.py in the obex-data-server distribution
This manual page was written by Filippo Giunchedi <filippo@debian.org> for the Debian project (but may be used by others).
ods-server 0.4.4 May 2009 ODS-SERVER(1)