LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-11-2015, 01:10 PM   #1
Raakh5
Member
 
Registered: Mar 2012
Posts: 174

Rep: Reputation: Disabled
Nee command description


Hello,

Can anybody please describe the following command
Code:
su - 99999999999 -c "cd ~/tg && bin/telegram-cli -k tg-server.pub -dWS /tmp/99999999999 &"
Thanks in anticipation
 
Old 09-11-2015, 01:49 PM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Check the manual page for su.

- is the same as -l and --login where it will provide an environment similar to what you'd get if you just logged in.

-c runs the command in quotes.

The command is all of what you have in quotes and specific to whatever application known as telegram-cli
 
Old 09-12-2015, 12:31 AM   #3
Raakh5
Member
 
Registered: Mar 2012
Posts: 174

Original Poster
Rep: Reputation: Disabled
Thanks for your favorable reply

I understood what is - and -c but what about -k -d -W -S and & sign at the end of the command?

Thanks again
 
Old 09-12-2015, 04:27 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by Raakh5 View Post
but what about -k -d -W -S and & sign at the end of the command?
that belongs to the command "telegram-cli". we don't know that command.
what is it? where does it come from? what does it belong to?
only you can answer these questions.
 
Old 09-12-2015, 05:16 AM   #5
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,947

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
The '&' causes the command to be run in the background.

The 'fg' command will bring it to the foreground.
 
Old 09-12-2015, 08:22 AM   #6
Raakh5
Member
 
Registered: Mar 2012
Posts: 174

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
that belongs to the command "telegram-cli". we don't know that command.
what is it? where does it come from? what does it belong to?
only you can answer these questions.
The telegram-cli is script that is running in background but want to know about -k -d -W -S

Thanks again
 
Old 09-12-2015, 09:14 AM   #7
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,597

Rep: Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691
Like STNG, Need more data

The command-line options for a script are defined and handled in the script. We cannot answer that question without access to the script itself, or documentation about it.

Did the person who write the script write a man page or info page about the script behavior and options?
 
Old 09-12-2015, 10:46 AM   #8
Raakh5
Member
 
Registered: Mar 2012
Posts: 174

Original Poster
Rep: Reputation: Disabled
There is no man or info about this telegram-cli script as well as when I use cat telegram-cli then its showing me strange characters. May be its executable script
 
Old 09-12-2015, 11:19 AM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,681

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
telegram-cli is a compiled program. Depends on how the program/script was written but many use -h to list command line options.

I am unfamiliar with telegram but from a sort of a quick search there isn't much documentation.
-k loads the specified key
-d runs in daemon mode
-W loads the contact list. Running telegram-cli the first time with out options should ask you to add contacts.
-S Runs telegram-cli on a Unix socket so other applications can connect to it.


https://blog.mypapit.net/2015/08/how...for-linux.html
https://github.com/vysheng/tg
https://github.com/jonnywilliamson/p...ram-cli-client

https://telegram.org/

Last edited by michaelk; 09-12-2015 at 11:21 AM.
 
1 members found this post helpful.
Old 09-12-2015, 11:47 AM   #10
Raakh5
Member
 
Registered: Mar 2012
Posts: 174

Original Poster
Rep: Reputation: Disabled
Thanks from the bottom of my heart
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Stat command output description jackloo Linux - Newbie 2 09-28-2007 08:31 AM
search using description to get command? Linuxuser_81 Linux - Newbie 1 10-07-2005 12:59 PM
nee a compiler (talking about C#) blackman890 Programming 1 12-11-2004 09:31 PM
Ps command status description gstasica Linux - General 1 11-10-2004 09:01 AM
Nee help to be able to type Japanese characters LinuxCrusader Linux - General 7 07-26-2004 05:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration