Hi,
I'm ssh-in to a remote machine (ubuntu) and trying to execute a little script in there.The script looks like this:
ssh user@ubuntu <<EOF
cd ~/test
ls -l
echo "Continue counting files starting with a`s ?"
read answer
if
then
ls -l a*
else
exit
fi
EOF
Now everything works... (9 Replies)
I have a file that is 20 - 80+ MB in size that is a certain type of log file.
It logs one of our processes and this process is multi-threaded. Therefore the log file is kind of a mess. Here's an example:
The logfile looks like: "DATE TIME - THREAD ID - Details", and a new file is created... (4 Replies)
Hi all,
I am writing a script (.sh) which takes backup of database, zip it ftp to remote server and finally mail me to notify. So far this all has been done, however, now I am looking to add notification over each step. Means if any step is failed, then I should get an email and if all goes... (2 Replies)
Please help what is wrong in below script. It is printing else also,
else
echo "DATABASE NOT RUNNING :${i}
=================================================
#!/usr/bin/ksh
set -A DBS $(cat /etc/oratab | grep ":Y" | awk -F : '{print $1}')
set -A RDBS $(ps -ef | grep -i pmon | grep... (3 Replies)
hi,
I have some problems in my simple script about the redirect echo stdout command inside a condition. Why is the echo command inside the elif still execute in the else command
Here are my simple script
After check on the two diff output the echo stdout redirect is present in two diff... (3 Replies)
Hello
newbies question...
I just need a script able to launch a command when a condition is matched :
#!/bin/ksh
SIZ = 'cat /nurp/control.lst|wc -l'
if test "$SIZ" -gt 0
then
echo 1
else
echo 2
fi
but I receive errors messages
./t2: SIZ: not found
2
whats wrong ? (5 Replies)
while
do
if ;then
read driverName
else
driverName=""
fi
done
can anyone please explain what exactly is happening on 1st line...is it like the conditions being ORed...I have no clue about this. (4 Replies)
HI
My doubt may be basic one but I need to get it clarified..
When i use "if" condition that checks for many AND, OR logical conditions
like
if ]; then
return 0
fi
Even the if condition fails it returns as zero.. Any clue..
But if i add else condition like
if ]; ... (2 Replies)
I wrote a code to find codons in a DNA string. The only problem I have is how do I make the code only work for a file with DNA. This means the file only has the characters a,c,g,t and no white space characters. (3 Replies)
I want get from user and pass these parameters to bash script. script should copy files in user home directory.
FYI: each file might be exist or not, might be one of them exist or four of them.
Here is my script, it always copy file1 and seems only one of them execute!
#!/bin/bash
for... (6 Replies)
Discussion started by: indeed_1
6 Replies
LEARN ABOUT DEBIAN
uget-gtk
UGET-GTK(1) User Commands UGET-GTK(1)NAME
uget-gtk - a download manager that uses gtk+2, and libcurl
SYNOPSIS
uget-gtk [options] [URL]
DESCRIPTION
Help Options:
-?, --help
Show help options.
--help-all
Show all help options.
--help-gtk
Show GTK+ Options
Application Options:
--quiet
add download directly. Don't show dialog.
--category-index=N
add download to Nth category. (default -1)
--folder=FOLDER
placed download file in FOLDER.
--filename=FILE
set download filename to FILE.
--user=USER
set both ftp and http user to USER.
--password=PASS
set both ftp and http password to PASS.
--proxy-type=N
set proxy type to N. (0=Don't use)
--proxy-host=HOST
set proxy host to HOST.
--proxy-port=PORT
set proxy port to PORT.
--proxy-user=USER
set USER as proxy username.
--proxy-password=PASS
set PASS as proxy password.
--http-user=USER
set http user to USER.
--http-password=PASS
set http password to PASS.
--http-referer=URL
include `Referer: URL' header in HTTP request.
--http-cookie-data=STRING
load cookies from STRING.
--http-cookie-file=FILE
load cookies from FILE.
--http-post-data=STRING
use the POST method; send STRING as the data.
--http-post-file=FILE
use the POST method; send contents of FILE
--ftp-user=USER
set ftp user to USER.
--ftp-password=PASS
set ftp password to PASS.
--display=DISPLAY
X display to use
AUTHOR
uget was written by Raymond Huang <plushuang at users.sourceforge.net>,and this manual page was originally written by Dennis Craven
<dcraven@gmail.com>
uget-gtk 1.4.9 July 2009 UGET-GTK(1)