02-10-2009
Thanks a lot actually i have sorted that issue out. i am using a grep option and from that i am retreiving the data. Also now i need to know how do i remotely logg off my telnet seession with a vendor node from my system. I am not bale to use this in my script because the logout command in my scirpt will not work after connecting the the vendor node and oly after i log out manually the logout and the next commands in,my script works. Hope you got my point. sorry if it is too basic for you.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
When working in vi, the CTRL+j command for merging lines is very convenient. Is there an equivalent for splitting them (inserting a line break)? I often find myself pressing "i" + "return" + "esc", which I find a bit lengthy.
Thanks in advance! (3 Replies)
Discussion started by: Skogsmulle
3 Replies
2. Shell Programming and Scripting
is it possible? because i still need to keep on reading even though i don't want to read that particular line (7 Replies)
Discussion started by: finalight
7 Replies
3. UNIX for Dummies Questions & Answers
find . "(" -name a.out -o -name core ")" -exec rm {} \;
Specifically
What files are trying to be found
What does the -o do in this command
What is the result if the files are found
What does the command do if the files are not found
What does the . after the word find mean
thanks in... (1 Reply)
Discussion started by: knp808
1 Replies
4. Solaris
Hi Gurus
I would like to know whether break command always work well means take the system to ok> prompt. Its depend upon sever model also. As I am facing problem when ever my system ( Sunfire V890 ) having Solaris 10 OS & oracle RAC on it goes to hang state then I run the break command from... (6 Replies)
Discussion started by: girish.batra
6 Replies
5. Shell Programming and Scripting
Greetings.
cat $name$telephonenumber >> telephonebook.txtI would like to break cat with the command 'break'. Pretty hard to understand huh? So to clarify it:
echo "If you want to stop adding datas to your telephonebook please type 'break'
if #this part is probably not good
then
echo... (2 Replies)
Discussion started by: buddhist
2 Replies
6. Shell Programming and Scripting
hi guys
I am working on a menu for linux... some basic stuff.
but I have an issue. I got 1 server where something is working and the same thing does not work in the same way in another linux box
Basically I am simulating a command line where user insert some commands and to end and go back... (7 Replies)
Discussion started by: karlochacon
7 Replies
7. Shell Programming and Scripting
...when the lines use both a colon and commas to separate the parts you want read as information.
The first version of this script used cut and other non-Bash-builtins, frequently, which made it nice and zippy with little more than average processor load in GNOME Terminal but, predictably, slow... (2 Replies)
Discussion started by: SilversleevesX
2 Replies
8. Shell Programming and Scripting
Hello everyone!
I'm trying to make the below file1 look like file2, can anyone help?
Basically I just hit backspace on every line that starts with a number.
Thanks!
file1:
THIS#IS-IT1
4
THIS#IS-IT2
3
THIS#IS-IT3
2
THIS#IS-IT4
1
Result > file2: (4 Replies)
Discussion started by: demmel
4 Replies
9. Solaris
Hi
I have A Sun Ultra Enterprise 450 server, it has Solaris installed on it.
I have A serial terminal hooked up to it (nullmodem cable plugged into serial port 1 on the box, and the other end plugged into the serial port of A laptop (NEC Versa M300))
The laptop is running Ubuntu 12.04.2... (3 Replies)
Discussion started by: SomeoneTwo
3 Replies
10. Shell Programming and Scripting
in my python script i have loop like below:
for item in itemlist:
if <condition>:
<code>
else:
<code>
if <condition>:
if <condition>:
<code>
else:
for type in types:
if... (1 Reply)
Discussion started by: ctrld
1 Replies
LEARN ABOUT LINUX
dpkg-vendor
dpkg-vendor(1) dpkg suite dpkg-vendor(1)
NAME
dpkg-vendor - queries information about distribution vendors
SYNOPSIS
dpkg-vendor [option...] command
DESCRIPTION
dpkg-vendor is a tool to query information about vendors listed in /etc/dpkg/origins. /etc/dpkg/origins/default contains information about
the current vendor.
COMMANDS
--is vendor
Exits with 0 if the current vendor is vendor. Otherwise exits with non-zero.
--derives-from vendor
Exits with 0 if the current vendor distribution is a derivative of vendor, otherwise exits with non-zero. It uses the "Parent" field
to browse all ancestors of the current vendor.
--query field
Print on standard output the value of the vendor-specific field for the current vendor.
--help Show the usage message and exit.
--version
Show the version and exit.
OPTIONS
--vendor vendor
Assumes the current vendor is vendor instead of discovering it with the DEB_VENDOR environment variable or /etc/dpkg/ori-
gins/default.
ENVIRONMENT
DEB_VENDOR
This setting defines the current vendor. If not set, it will discover the current vendor by reading /etc/dpkg/origins/default.
AUTHOR
Copyright (C) 2009 Raphael Hertzog
This is free software; see the GNU General Public Licence version 2 or later for copying conditions. There is NO WARRANTY.
Debian Project 2009-05-10 dpkg-vendor(1)