09-06-2015
Hello
NO, We run a pwdx command from remote machine to local server.
I.e By default we connect to remote machine then we use ssh hostname connect to respective servers..
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
HI
I am trying to store the output of this awk command
awk -F, {(if NR==2) print $1} test.sr
in a variable when I am trying v= awk -F, {(if NR==2) print $1} test.sr
$v = awk -F, {(if NR==2) print $1} test.sr
but its not working out .
Any suggestions
Thanks
Arif (3 Replies)
Discussion started by: mab_arif16
3 Replies
2. UNIX for Dummies Questions & Answers
Hi unix gurus,
I am trying to store the result of a command into a variable.
But it is not getting stored.
x='hello'
y=echo $x | wc -c
but it is giving the output as 0(zero)
Pls help me its very urgent (7 Replies)
Discussion started by: ravi raj kumar
7 Replies
3. Shell Programming and Scripting
Hi all,
I'm creating a script which uses 'defaults read' to retrieve details from an Info.plist like this;
defaults read "/Path/Contents/Info" CFBundleShortVersionString
This works fine in Terminal and returns the expected values.
Is it possible to use this command in a script, and... (0 Replies)
Discussion started by: davewg
0 Replies
4. UNIX Desktop Questions & Answers
Hi,
i have some files in one directory(say some sample dir) whose names will be like the following.
some_file1.txt
some_file2.txt.
i need to get the last modified file size based on file name pattern like some_
here i am able to get the value of the last modified file size using the... (5 Replies)
Discussion started by: eswarreddya
5 Replies
5. UNIX for Dummies Questions & Answers
I'm sure this is a simple thing but I can't figure it out. In a script that I'm writing, I'd like to be able to store each line of output from "ls -l" into a variable. Ultimately I'd like to end up with something like:
for a in `ls -l`
do something with $a
doneBut that's reading each... (2 Replies)
Discussion started by: ewoods
2 Replies
6. Shell Programming and Scripting
Hi All,
Hope someone can advise here as I have been struggling to find a syntax that works here. I have tried a stack of combination I have seed in the forums but I think because I have needed to use "" and `` in the statments another method is found.
I am reading in lines with the following... (1 Reply)
Discussion started by: nkwilliams
1 Replies
7. Shell Programming and Scripting
Hi!
i'm trying to parse textfiles against a pattern and storing the result in a variable.
The strings i want to get are embraced by and can occur several times in one line, so e.g.
some text anything else endwhat i have so far:
#!/bin/bash
for f in $*
do
exec 3<&0
exec 0<$f
... (2 Replies)
Discussion started by: thoni
2 Replies
8. Programming
Hey guys got a slight problem here, I kindda new to socket programming in C so I need some guide on how to store something like this in a variable.
printf ("%s Name : %s\n", id,getNAME(name));
name is declared as name.
The getName is a function.
So what I'm... (7 Replies)
Discussion started by: aLHaNz
7 Replies
9. Shell Programming and Scripting
My script below seems to be choking because I need the the output of the find command to be stored as a variable that can then be called by used lower in the script.
#!/bin/bash
cd "/resumes_to_be_completed"
var1=find . -mmin -1 -type f \( -name "*.doc" -o -name "*.docx" \)... (1 Reply)
Discussion started by: binary-ninja
1 Replies
10. Shell Programming and Scripting
Hi,
My aim is to get the md5 hash of a file and store it in a variable.
var1="md5sum file1"
$var1
The above outputs fine but also contains the filename, so somthing like this 243ASsf25 file1
i just need to get the first part and put it into a variable.
var1="md5sum file1"... (5 Replies)
Discussion started by: JustALol
5 Replies
LEARN ABOUT SUSE
xine-remote
XINE-REMOTE(1x) XINE-REMOTE(1x)
NAME
xine-remote - a small tool to connect xine remote control server.
SYNOPSIS
xine-remote [options]
DESCRIPTION
This manual page documents briefly the xine-remote tool.
xine-remote can replace a raw telnet connection to a xine remote control server. It use the readline facilities (completion, vi/emacs
shortcuts, command history, etc...). By default, it try to connect the localhost, using the default port (see xine(1)).
OPTIONS
The program follow the usual GNU command line syntax, with long ioptions starting with two dashes (`-'). A summary of options are included
below.
-H, --host <hostname>
Try to connect <hostname>.
-P, --port <port>
Try to connect the host using <port>.
-c, --command <command>
Send <command> to server then quit. The command should be single quoted if it contain spaces or special characters.
-n, --noconnect
Do not initiate the connection on startup.
-v, --version
Display version.
-h, --help
Display options summary.
COMMANDS
Few commands are available, which are used to open or close a connection:
? Display available commands (the xine-remote ones + server ones when connection is established).
help <command>
Display the purpose of <command>, if that is omitted, display available commands.
syntax <command>
Display the usage of <command>.
version
Display version.
open <server[:port]>
Open connection to server. A port can be optionally specified, using colon (:) separator.
close Close connection.
quit Leaving xine-remote.
SEE ALSO
xine(1).
AUTHOR
This manual page was written by Daniel Caujolle-Bert <f1rmb@users.sourceforge.net> for the xine project.
The xine project 2002-04-16 XINE-REMOTE(1x)