Hello,
I have a problem with trying to run a shell script that reads in user input, validates, and sets to a 'default' value if the input is not valid. I cannot get the portion of resetting to a default value to work. These lines are skipped, and the
value of x is still whatever the user... (1 Reply)
Greetings all,
I'm in the midst of writing a login component for a series of shell scripts. What my login script does is this:
1. Prompt for username and read in username
2. Prompt for destination host and read in destination host
3. run ssh username and destination host
4. After user keys... (0 Replies)
Hi all,
Just like to ask if it is possible to do the following:
1. Have a shell script that calls ssh username@destinationhost
2. Upon successful verification, we ssh into the destination host and automatically use ksh to run a shell script that resides in the destination host. (Hopefully no... (8 Replies)
Hi
newbeeeee alarm
i want to send a little script over ssh
this script mus download a report.tar then rename and move. the report name format is report_<host.with.dot>-10-09-20-11:55:25.tar
function remote_cmd_mv
{
_host=$1
ARCHROOTDIR='/tmp'
... (8 Replies)
HI Unix Gurus,
I an stuck in an interesting issue, where I am trying to execute a script on remote server after ssh.
The script on remote server is interactive,. Whenever it is called it hangs where it expects input from terminal and I have to terminate it.
I have searched through fourm... (12 Replies)
Hi All,
In a Shell scriipt with a SQL block I want to issue a query against a local DB and a remote DB on a remote server. The shell script is running locally.
This is how I connect to the local server. But I want the query to reference remote table in the join. Question can I specify a... (1 Reply)
I have a script like this (Yes, I know the DAY6 number isn't right - I'm just testing at this point):
DAY0=`date -I`
DAY1=`date -I -d "1 day ago"`
DAY6=`date -I -d "2 days ago"`
if
then
ssh root@synology1 nohup rm -rf "/volume1/Fileserver/$DAY6"
fi
I've tested the line to remove the... (5 Replies)
I need to run a local shell script on a remote machine. I am able to achieve that by executing the command
> ssh -qtt user@host < test.sh
However, when I try to pass arguments to test.sh it fails.
Any pointers would be appreciated. (7 Replies)
Hello,
I need to create a shell script which will copy files - which are created on particular date and starting with particular name - to local windows XP machine.
Is this possible.?
Currently it is being done manually using winscp (1 Reply)
local script:
cat > first.sh
cd /tmp
echo $PWD
echo `whoami`
cd /tmp/123
tar -cvf 789.tar 456
sleep 10
except script:
cat > first
#!/usr/bin/expect
set ip 10.5.15.20
set user "xyz123"
set password "123456"
set script first.sh
spawn sh -c "ssh $user@$ip bash < $script" (1 Reply)
Discussion started by: Aditya Avanth
1 Replies
LEARN ABOUT SUNOS
gimp-remote-2.0
GIMP-REMOTE(1) GIMP Manual Pages GIMP-REMOTE(1)NAME
gimp-remote - tells a running GIMP to open a (local or remote) image file.
SYNOPSIS
gimp-remote [-h] [--help] [-v] [--version] [--display display] [-e] [--existing] [-q] [--query] filename ...
DESCRIPTION
gimp-remote is a small utility that tells a running GIMP to open one or more (local or remote) image files. It does so by searching for a
GIMP toolbox on the active display. If it can find a GIMP toolbox, a synthetic drop event is created which makes GIMP think the files
would have been dropped onto the toolbox. More than one filename or URL can be specified on the commandline.
If no GIMP window is found, gimp-remote will start a new GIMP instance and ask it to load the specified images. If no filename or URL is
given, gimp-remote will start a new GIMP. This behaviour can be altered using the command-line options described below.
OPTIONS
gimp-remote accepts the following options:
-h, --help
Display a list of all commandline options.
-v, --version
Output the version info.
--display display
Use the designated X display.
-e, --existing
If no running GIMP instance is found, don't start a new one but exit.
-q, --query
Check if GIMP is running and exit. A status code of 0 indicates that a GIMP toolbox window has been found on this display.
EXAMPLES
gimp-remote http://www.gimp.org/images/wilber_the_gimp.png
Loads the image from the GIMP website into a running GIMP or starts a new one.
gimp-remote wilber.xcf wilma.xcf
Loads the local files wilber.xcf and wilma.xcf into a running GIMP or starts a new one.
ENVIRONMENT
DISPLAY to get the default host and display number.
AUTHORS
Sven Neumann and Simon Budig.
SEE ALSO gimp(1), gimprc(5), gimptool(1)Version 2.0.2 March 23 2004 GIMP-REMOTE(1)