Hi,
I'm trying to assign the output of a command to a variable and then concat it with another string, however, it keeps overwriting the original string instead of adding on to the end of the string.
Contents of test.txt --> This is a test
var1="`head -n 1 test.txt`"
echo $var1 (This is a... (5 Replies)
I have the sql file cde.sql with the below contents:
abcdefghij
abcwhendefothers
sdfghj
when no one else
when others
wwhen%others
exception when others
Now I want to search for the strings containing when others together and ceck whether that does not occur more than once in the... (2 Replies)
Hello friends,
I doing the follwing script , but found problem to store it to a shell variable.
#! /bin/sh
for temp in `find ./dat/vector/ -name '*.file'`
do
echo $temp
nawk -v temp=$temp 'BEGIN{ split(temp, a,"\/"); print a}'
done
output:
./dat/vector/drf_all_002.file... (6 Replies)
hi,
I want to assign find command result into some temporary variable:
jarPath= find /opt/lotus/notes/ -name $jarFile
cho "the jar path $jarPath"
where jarPath is temporary variable.
Can anybody help on this.
Thanks in advance
----Sankar (6 Replies)
I am new to unix shell scripting.
I was trying to convert each lines in a file to upper case.
I know how to convert the whole file.
But here i have to do line by line.
I am getting it in the below mentioned script
#!/bin/bash
#converting lower to upper in a file
#tr "" "" <file1... (3 Replies)
When I run time -p <command>, it outputs:
real X.XX
user X.XX
sys X.XXwhere X.XX is seconds. How I can take just that first number output, the seconds of real time, and assign that to a variable? (9 Replies)
i'm on a Mac running BSD unix.
i have a script in which i ask the user to input the name of a mounted volume. i then call SED to substitute backslashes and spaces in place of the spaces. that looks like this:
echo "Enter the name of the volume"
read Volume
echo "You've chosen \"$Volume\""... (7 Replies)
Hi All,
I am trying to convert the below Csh code into Perl.
But i have the following error.
Can any expert help ?
Error:
ls: *tac: No such file or directory
Csh
set $ST_file = `ls -rt *$testid*st*|tail -1`;
Perl
my $ST_file = `ls -rt *$testid*st*|tail -1`; (10 Replies)
I have a script whose contents are as below
result= awk 's=100 END {print s }'
echo "The result is" $result
The desired output is
The result is 100
My script is running without exiting and i am also not getting the desired output.
Please help (5 Replies)
Hi,
I'm writing a script that connects through ssh (using "expect") and then is supposed to find whether a process on that remote machine is running or not. Here's my code (user, host and password are obviously replaced with real values in actual script):
#!/usr/bin/expect
set timeout 1... (3 Replies)
Discussion started by: oseri
3 Replies
LEARN ABOUT DEBIAN
anyremote2html
ANYREMOTE2HTML(1) General Commands Manual ANYREMOTE2HTML(1)NAME
anyremote2html - web interface for anyRemote acting as HTTP server
SYNOPSIS
anyremote2html -w web-port -a anyRemote-port [-i directory-with-icons] [-s 16|32|64] [-r refresh rate] [--width integer] [-d]
DESCRIPTION
The overall goal of this project is to provide remote control service on Linux through Bluetooth, InfraRed, Wi-Fi or just TCP/IP connec-
tion.
anyRemote supports a wide range of modern cell phones like Nokia, SonyEricsson, Motorola and others.
It was developed as a thin "communication" layer between Bluetooth (IR, Wi-Fi)-capabled phones and Linux, and in theory it could be config-
ured to manage almost any software.
anyRemote is a console application, but in addition there are GUI front-ends for Gnome and KDE and this web front-end.
With the help of this interface any device which contains a web browser and which can connect to the PC with anyRemote by TCP/IP (GPRS, Wi-
Fi, ...) could be used as a remote control.
USAGE
Run anyremote/kanyremote with "-s socket:<port>" option:
anyremote -s socket:5000 -f <cfg. file>
Run anyremote2html -a <anyremote port> -w <http port> -s 16|32|64 -i <directory with icons>
For example:
anyremote2html -a 5000 -w 5050 -s 64 -i /usr/share/pixmaps/anyRemote2html
Run browser on device and connect to http://<ip.of.PC>:5050
For easier use and configuration of anyRemote as well as anyRemote2html, use either kAnyRemote or gAnyRemote.
Further information is shipped with the anyRemote package.
OPTIONS -h, --help
Show summary of options.
-w <web port>
Use specified port for HTTP server, default is 5550
-a <anyRemote port>
Use specified port to connect to anyRemote, default is 5000
-i <directory with icons>
Default is /usr/share/pixmaps/anyremote2html/
-s 16|32|64
Use specified icon size, default is 64
-r no|smart|<positive int>
Set refresh rate for web page, "no" means no refresh, "smart" means variable refresh rate (default)
--width <positive int>
Assume screen width is specified value, default is 800
-d Show debug output
SEE ALSO anyremote(1), ganyremote(1x), kanyremote(1x).
BUGS
If you find any bugs, please report to anyremote@mail.ru
AUTHOR
anyremote2html was written by Mikhail Fedotov <anyremote@mail.ru>.
This manual page was written by Philipp Huebner <debalance@debian.org>, for the Debian project (and may be used by others).
February 5, 2009 ANYREMOTE2HTML(1)