LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 02-19-2014, 05:52 AM   #1
thunderstorm1!
LQ Newbie
 
Registered: Oct 2013
Posts: 12

Rep: Reputation: Disabled
commands inside shell script


hi ,
I am running a command inside a shell script . Now the command when run from the terminal, it generally shows the loading status till it gets finished .Now when i run the same command inside the script , how do i view the loading status of the command .
 
Old 02-19-2014, 05:58 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,241

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
Show the script (using CODE tags https://www.linuxquestions.org/quest...do=bbcode#code ) and tell us what you expect to see.
 
Old 02-19-2014, 08:14 AM   #3
thunderstorm1!
LQ Newbie
 
Registered: Oct 2013
Posts: 12

Original Poster
Rep: Reputation: Disabled
As i dont have the exact code now , I am giving an example

youtube-dl "some web address" -> this command is used to download a youtube video . It will show the percentage of progress as it downloads it . But if i use the same with in a script as this
Code:
`youtube-dl "some web address" `
then as i understand the command runs in a subshell , so I am not able to see the percentage of progress . the script simply waits till the download finishes and it returns to the command line .

i am trying to understand how the subshell or child process works .
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Executing a Shell script with 654 permissions inside another shell script. changusee2k Linux - Newbie 2 06-07-2011 08:58 PM
[SOLVED] SQL commands inside bash script XardasCZ Linux - Server 1 05-05-2011 11:08 AM
Changing user and running commands inside of a script? cory94bailly Linux - Newbie 2 02-22-2011 01:57 PM
Runs Multiple shell script inside a main script using crontab srimal Linux - Newbie 4 10-22-2009 07:19 PM
where to place certiain commands inside shell script beeblequix Linux - Newbie 8 08-10-2006 12:12 PM


All times are GMT -5. The time now is 10:47 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration