Showing posts with label linux command line. Show all posts
Showing posts with label linux command line. Show all posts

Tuesday, May 21, 2013

How can I safe a javascript generated page to an html file from a linux command line?

Q. Hi,
I have a javascript/ajax page that I'd like to save as the generated html to a file. URL
http://www.neaveru.com/digg/stats/kevinrose/max_comments/0/days/14

Is there a way to do that? I haven't found any firefox command-line like that.
Thanks!
safe?? save! ;)
sorry, I want to run this in a cron... so I can't click ;)

A. from FF & a cron, no way.

there might be some lynx variant or other 'get' tool that does JavaScript.

http://www.google.com/search?q=linux+JavaScript+command+line


you could capture the data that the ajax gets, and save that to a file... but not the graph.

is it your site? a little cgi program instead would be able to capture the graph.

I could do it in Safari on a mac with applescript!

how do you access a remote computer from the linux command line?
Q. i know the sshusername@computername part, but how do i get to the point where i type that in the command line?

A. Take a look at the "ssh" command (manual page linked below from Duke University)

What is the windows equivalent of the Linux terminal's CTRL + D?
Q. I wrote and compiled a c program, and in the Linux command line, it allows me to enter text, then press CTRL + D to enter the next step of the program, if thats what you wanna call it. Ive recompiled the source for windows, and i notice that CTRL + D just types ^D... what key combo should I be using?

A. If the program is looking for end-of-file, use ctrl-Z.



Nec Projector Review

Plastic Shed Reviews

Ati Graphic Reviews

Nurse Uniforms Reviews

Cabochons Reviews

Inflatable Water Slides Reviews

Barcode Scanner Reviews

Monday, May 20, 2013

How can I safe a javascript generated page to an html file from a linux command line?

Q. Hi,
I have a javascript/ajax page that I'd like to save as the generated html to a file. URL
http://www.neaveru.com/digg/stats/kevinrose/max_comments/0/days/14

Is there a way to do that? I haven't found any firefox command-line like that.
Thanks!
safe?? save! ;)
sorry, I want to run this in a cron... so I can't click ;)

A. from FF & a cron, no way.

there might be some lynx variant or other 'get' tool that does JavaScript.

http://www.google.com/search?q=linux+JavaScript+command+line


you could capture the data that the ajax gets, and save that to a file... but not the graph.

is it your site? a little cgi program instead would be able to capture the graph.

I could do it in Safari on a mac with applescript!

how do you access a remote computer from the linux command line?
Q. i know the sshusername@computername part, but how do i get to the point where i type that in the command line?

A. Take a look at the "ssh" command (manual page linked below from Duke University)

What is the windows equivalent of the Linux terminal's CTRL + D?
Q. I wrote and compiled a c program, and in the Linux command line, it allows me to enter text, then press CTRL + D to enter the next step of the program, if thats what you wanna call it. Ive recompiled the source for windows, and i notice that CTRL + D just types ^D... what key combo should I be using?

A. If the program is looking for end-of-file, use ctrl-Z.



Nec Projector Review

Plastic Shed Reviews

Ati Graphic Reviews

Nurse Uniforms Reviews

Cabochons Reviews

Inflatable Water Slides Reviews

Barcode Scanner Reviews

Wednesday, May 15, 2013

How can I get IP addresses of others computers connected on the same network?

Q. I would like to know how to get the IP addresses of others computer connected to my LAN without looking at the DHCP client list of the router.
I'd like to know if it's possible to see this with a command line or a program (Linux or windows)
I know about Netstat but the connection must be established with other computers to see their IP addresses

A. Winfinger Print

This is a free program that can be down loaded for free.

I have used it for many years and it runs on Windows.

There are many other ways to do this but this is the first thing that came to mind in 5 seconds of thinking about your question. Very easy to use and free.

Does learn Linux shell/command line useful for DESKTOP USER? Can you give me some examples?
Q. I have read several books about command line and scripting for Linux (bash). I think, most of them is useful for Linux Administrator (Server class). But, for Desktop user (who just use computer for office task, such as email, internet, presentation, make letter, and so on), I don't think it is necessary to learn it. Using GUI is enough. How do you think? Thank you.

A. You are right the GUI is enough for most users and most tasks. The CLI becomes useful when you have a problem that you cannot solve with the GUI. E.G. editing config files, getting the xserver to run when it has a problem, getting linux running when it won't boot properly, etc.

What is computer programming written in?
Q. I'm starting to get very interested in scripting and its quite easy. I caught on very quick in bash scripting, and bash scripting is done in the command line. I was wondering where something like Python or C++ would be written. I would assume it written would be somewhere else since those languages are used to create whole new programs.

I'd be happy with great links if you don't feel like explaining.
Thank you for your help.

A. Yes bash isn't a programming language but a command line shell, as you already pointed out.

With bash, as you already know, you can type a bash command directly in the shell or in a separate file called a script and then run that script. Yet when you write the script you can use any kind of text editor, because your writing text.

Now programming source code is also nothing but text. Which means you can program in notepad if you wanted to and save it with the file extension associated with that programming language. The ext doesn't actually do anything to the text, it's still just text, but the ext tells the computer what the file is for.

So you could write Bash, Python or C++ using anything from a simple text editor like notepad to a full IDE like eclipse. Their main difference between Python and C++ is that Python is an interpreted language and C++ is compiled.

Interpreted:
is much like how you use bash. You can type and execute commands one at a time and if you make a script, bash actually executes those commands from the script one at a time line by line. Python works similar to this. The source code (also known as a script too btw) is converted to an intermediary language called bytecode which is kinda like machine language but not actual machine language(if that makes sense). Then it reads and executes that bytecode line by line. When it reads a line of bytecode it converts it into real machine code instructions and that machine code finally gets executed, then it moves on to the next line of bytecode and so on. A nice by product of this interpreted nature is that Python comes with an interactive interpreter which is something similar to your bash shell. On you linux machine just type python in the shell and you see what I mean.

Compiled:
There is no bytecode involved with a compiled language. The source code file is converted or "compiled" into machine code completely and only then can it run. To use a compiled language, you must have the appropriate compiler on your machine to compile it so you can run it. IDEs like codeblocks come with that compiler and makes this process nice and simple for you.

Compiled languages are faster and more efficient.

C++ is known as a low level language meaning it's closer to the hardware whereas Python is high level as it completely abstracts away from the hardware, at the trade off of ease of programming over efficiency.

For python I use the default IDE that comes with the language install file and it's called IDLE. It's available for linux too. But most programmers hate IDLE. You could use vim or emacs which seem to be the most favored from what I can tell. Sometimes I geany or just the shell itself when using python interactively for some small snippets if I'm on a linux machine.



Nec Projector Review

Plastic Shed Reviews

Ati Graphic Reviews

Nurse Uniforms Reviews

Cabochons Reviews

Inflatable Water Slides Reviews

Barcode Scanner Reviews

Wednesday, April 10, 2013

How do I edit a text using linux command line mode?

Q. I need to edit a text file but I dont know how do you do it using linux in command line mode.

Thanks!

A. pico or nano are good choices for a novice. emacs or vi for an expert

What are the different syntax used in Linux and Windows command line interface?
Q. What are the different syntax used in Linux and Windows command line interface?

A. The Windows one is based on MS-DOS the Linux one is based on UNIX. There's tonnes of differences.

So you do 'ls' instead of 'dir'. 'cd' works the same but uses '/' in Linux and '/' in Windows. There's tonnes of other differences.

All MS-DOS commands are here: http://www.computerhope.com/msdos.htm

Linux ones are here: http://www.oreillynet.com/linux/cmd/

How do I run a web browser from linux command line?
Q. I an VERY new to linux. I have installed Fedora 5 in text mode. I have a Linux book and am trying to slowly learn linux. So from the console, or command line, how do I run a web browser. Also how do I run the X Windows System?

A. If you installed in text mode, maybe you didn't install X. You probably have a text mode browser. Try lynx or elinks. If the startx command doesn't work, try "yum install x-window-system". By the way, Fedora 5 is old. The current version of Fedora is 9.



Nec Projector Review

Plastic Shed Reviews

Ati Graphic Reviews

Nurse Uniforms Reviews

Cabochons Reviews

Inflatable Water Slides Reviews

Barcode Scanner Reviews

Monday, April 8, 2013

How do I run a web browser from linux command line?

Q. I an VERY new to linux. I have installed Fedora 5 in text mode. I have a Linux book and am trying to slowly learn linux. So from the console, or command line, how do I run a web browser. Also how do I run the X Windows System?

A. If you installed in text mode, maybe you didn't install X. You probably have a text mode browser. Try lynx or elinks. If the startx command doesn't work, try "yum install x-window-system". By the way, Fedora 5 is old. The current version of Fedora is 9.

How can I set folder permissions in linux in such a way that users can create files/folders, but not delete?
Q. I have made a folder on my linux server, which needs to function as some sort of "deposit box".

Users should be able to create files & folders, but not delete them after they have been created.
Is that possible from a linux command line?

A. You'd probably have to mess with umask and chmod.
umask [-p] [-S] [mode]
The user file-creation mask is set to mode. If mode begins with a digit, it is interpreted as an octal number; otherwise it is interpreted as a symbolic mode mask similar to that accepted by chmod(1). If mode is omitted, the current value of the mask is printed. The -S option causes the mask to be printed in symbolic form; the default output is an octal number. If the -p option is supplied, and mode is omitted, the output is in a form that may be reused as input. The return status is 0 if the mode was successfully changed or if no mode argument was supplied, and false otherwise.

What wireless internet cards work right out of the box for the linux ubuntu operating system, i need to buy on
Q. What wireless internet cards work right out of the box for the linux ubuntu operating system, i need to buy one but I have no clue about any of the linux command lines or anything. I also have a zyxel g router

A. I have a Dell desktop with a LinkSys WMP54GS wireless card. After installing Ubuntu the wireless card was automatically recognized.



Nec Projector Review

Plastic Shed Reviews

Ati Graphic Reviews

Nurse Uniforms Reviews

Cabochons Reviews

Inflatable Water Slides Reviews

Barcode Scanner Reviews

Sunday, April 7, 2013

How do I reset the numbers on Linux command line prompt?

Q. how do I reset the numbers on the command line prompt:

hostname[1000]%

I noticed when I log in it always starts at 1000 and counts up til I logout and login again. When I login again it still starts at 1000. How do I reset this number? I thought it was the history command, but learned it wasn't.

A. You need to set the prompt variables in your profile file or in the .bash_rc file.

Do a search on "linux .profile" (note the dot in front of "profile"). Look for ways to set the PS1 and PS2 prompts.

How can I safe a javascript generated page to an html file from a linux command line?
Q. Hi,
I have a javascript/ajax page that I'd like to save as the generated html to a file. URL
http://www.neaveru.com/digg/stats/kevinrose/max_comments/0/days/14

Is there a way to do that? I haven't found any firefox command-line like that.
Thanks!
safe?? save! ;)
sorry, I want to run this in a cron... so I can't click ;)

A. from FF & a cron, no way.

there might be some lynx variant or other 'get' tool that does JavaScript.

http://www.google.com/search?q=linux+JavaScript+command+line


you could capture the data that the ajax gets, and save that to a file... but not the graph.

is it your site? a little cgi program instead would be able to capture the graph.

I could do it in Safari on a mac with applescript!

how do you access a remote computer from the linux command line?
Q. i know the sshusername@computername part, but how do i get to the point where i type that in the command line?

A. Take a look at the "ssh" command (manual page linked below from Duke University)



Nec Projector Review

Plastic Shed Reviews

Ati Graphic Reviews

Nurse Uniforms Reviews

Cabochons Reviews

Inflatable Water Slides Reviews

Barcode Scanner Reviews

Monday, March 25, 2013

How do I reset the numbers on Linux command line prompt?

Q. how do I reset the numbers on the command line prompt:

hostname[1000]%

I noticed when I log in it always starts at 1000 and counts up til I logout and login again. When I login again it still starts at 1000. How do I reset this number? I thought it was the history command, but learned it wasn't.

A. You need to set the prompt variables in your profile file or in the .bash_rc file.

Do a search on "linux .profile" (note the dot in front of "profile"). Look for ways to set the PS1 and PS2 prompts.

How can I safe a javascript generated page to an html file from a linux command line?
Q. Hi,
I have a javascript/ajax page that I'd like to save as the generated html to a file. URL
http://www.neaveru.com/digg/stats/kevinrose/max_comments/0/days/14

Is there a way to do that? I haven't found any firefox command-line like that.
Thanks!
safe?? save! ;)
sorry, I want to run this in a cron... so I can't click ;)

A. from FF & a cron, no way.

there might be some lynx variant or other 'get' tool that does JavaScript.

http://www.google.com/search?q=linux+JavaScript+command+line


you could capture the data that the ajax gets, and save that to a file... but not the graph.

is it your site? a little cgi program instead would be able to capture the graph.

I could do it in Safari on a mac with applescript!

how do you access a remote computer from the linux command line?
Q. i know the sshusername@computername part, but how do i get to the point where i type that in the command line?

A. Take a look at the "ssh" command (manual page linked below from Duke University)



Nec Projector Review

Plastic Shed Reviews

Ati Graphic Reviews

Nurse Uniforms Reviews

Cabochons Reviews

Inflatable Water Slides Reviews

Barcode Scanner Reviews

Saturday, March 23, 2013

What wireless internet cards work right out of the box for the linux ubuntu operating system, i need to buy on

Q. What wireless internet cards work right out of the box for the linux ubuntu operating system, i need to buy one but I have no clue about any of the linux command lines or anything. I also have a zyxel g router

A. I have a Dell desktop with a LinkSys WMP54GS wireless card. After installing Ubuntu the wireless card was automatically recognized.

How do I reset the numbers on Linux command line prompt?
Q. how do I reset the numbers on the command line prompt:

hostname[1000]%

I noticed when I log in it always starts at 1000 and counts up til I logout and login again. When I login again it still starts at 1000. How do I reset this number? I thought it was the history command, but learned it wasn't.

A. You need to set the prompt variables in your profile file or in the .bash_rc file.

Do a search on "linux .profile" (note the dot in front of "profile"). Look for ways to set the PS1 and PS2 prompts.

How can I safe a javascript generated page to an html file from a linux command line?
Q. Hi,
I have a javascript/ajax page that I'd like to save as the generated html to a file. URL
http://www.neaveru.com/digg/stats/kevinrose/max_comments/0/days/14

Is there a way to do that? I haven't found any firefox command-line like that.
Thanks!
safe?? save! ;)
sorry, I want to run this in a cron... so I can't click ;)

A. from FF & a cron, no way.

there might be some lynx variant or other 'get' tool that does JavaScript.

http://www.google.com/search?q=linux+JavaScript+command+line


you could capture the data that the ajax gets, and save that to a file... but not the graph.

is it your site? a little cgi program instead would be able to capture the graph.

I could do it in Safari on a mac with applescript!



Nec Projector Review

Plastic Shed Reviews

Ati Graphic Reviews

Nurse Uniforms Reviews

Cabochons Reviews

Inflatable Water Slides Reviews

Barcode Scanner Reviews

Tuesday, March 19, 2013

How do I run a web browser from linux command line?

Q. I an VERY new to linux. I have installed Fedora 5 in text mode. I have a Linux book and am trying to slowly learn linux. So from the console, or command line, how do I run a web browser. Also how do I run the X Windows System?

A. If you installed in text mode, maybe you didn't install X. You probably have a text mode browser. Try lynx or elinks. If the startx command doesn't work, try "yum install x-window-system". By the way, Fedora 5 is old. The current version of Fedora is 9.

How can I set folder permissions in linux in such a way that users can create files/folders, but not delete?
Q. I have made a folder on my linux server, which needs to function as some sort of "deposit box".

Users should be able to create files & folders, but not delete them after they have been created.
Is that possible from a linux command line?

A. You'd probably have to mess with umask and chmod.
umask [-p] [-S] [mode]
The user file-creation mask is set to mode. If mode begins with a digit, it is interpreted as an octal number; otherwise it is interpreted as a symbolic mode mask similar to that accepted by chmod(1). If mode is omitted, the current value of the mask is printed. The -S option causes the mask to be printed in symbolic form; the default output is an octal number. If the -p option is supplied, and mode is omitted, the output is in a form that may be reused as input. The return status is 0 if the mode was successfully changed or if no mode argument was supplied, and false otherwise.

What wireless internet cards work right out of the box for the linux ubuntu operating system, i need to buy on
Q. What wireless internet cards work right out of the box for the linux ubuntu operating system, i need to buy one but I have no clue about any of the linux command lines or anything. I also have a zyxel g router

A. I have a Dell desktop with a LinkSys WMP54GS wireless card. After installing Ubuntu the wireless card was automatically recognized.



Nec Projector Review

Plastic Shed Reviews

Ati Graphic Reviews

Nurse Uniforms Reviews

Cabochons Reviews

Inflatable Water Slides Reviews

Barcode Scanner Reviews

Monday, March 11, 2013

How do I edit a text using linux command line mode?

Q. I need to edit a text file but I dont know how do you do it using linux in command line mode.

Thanks!

A. pico or nano are good choices for a novice. emacs or vi for an expert

How do I run a web browser from linux command line?
Q. I an VERY new to linux. I have installed Fedora 5 in text mode. I have a Linux book and am trying to slowly learn linux. So from the console, or command line, how do I run a web browser. Also how do I run the X Windows System?

A. If you installed in text mode, maybe you didn't install X. You probably have a text mode browser. Try lynx or elinks. If the startx command doesn't work, try "yum install x-window-system". By the way, Fedora 5 is old. The current version of Fedora is 9.

How can I set folder permissions in linux in such a way that users can create files/folders, but not delete?
Q. I have made a folder on my linux server, which needs to function as some sort of "deposit box".

Users should be able to create files & folders, but not delete them after they have been created.
Is that possible from a linux command line?

A. You'd probably have to mess with umask and chmod.
umask [-p] [-S] [mode]
The user file-creation mask is set to mode. If mode begins with a digit, it is interpreted as an octal number; otherwise it is interpreted as a symbolic mode mask similar to that accepted by chmod(1). If mode is omitted, the current value of the mask is printed. The -S option causes the mask to be printed in symbolic form; the default output is an octal number. If the -p option is supplied, and mode is omitted, the output is in a form that may be reused as input. The return status is 0 if the mode was successfully changed or if no mode argument was supplied, and false otherwise.



Nec Projector Review

Plastic Shed Reviews

Ati Graphic Reviews

Nurse Uniforms Reviews

Cabochons Reviews

Inflatable Water Slides Reviews

Barcode Scanner Reviews

Monday, March 4, 2013

What is the windows equivalent of the Linux terminal's CTRL + D?

Q. I wrote and compiled a c program, and in the Linux command line, it allows me to enter text, then press CTRL + D to enter the next step of the program, if thats what you wanna call it. Ive recompiled the source for windows, and i notice that CTRL + D just types ^D... what key combo should I be using?

A. If the program is looking for end-of-file, use ctrl-Z.

Using command line only, how to I retrieve the exact number of frames in a given video in Linux?
Q. Using command line only, how to I retrieve the exact number of frames in a given video in Linux?

ffmpeg will return the duration in minutes and the framerate but duration*framerate does not give an exact number of frames.

I need to know the exact number of frames.

A. mplayer -identify -fps 1 VIDEOFILE

Then look at
ID_VIDEO_FPS=1.000
ID_VIDEO_ASPECT=0.0000
ID_AUDIO_FORMAT=80
ID_AUDIO_BITRATE=224000
ID_AUDIO_RATE=0
ID_AUDIO_NCH=0
ID_LENGTH=41819.00

Notice how the length, in seconds, is now the exact number of frames. (41819 frames)

If you need it to be interactive-less:
mplayer -msglevel all=0 -identify -fps 1 -vo null -frames 0 VIDEOFILE | grep ID_LENGTH

Or, for a program:
mplayer -identify -fps 1 -vo null -frames 0 -msglevel all=-1 VIDEO > moviedata

then to get the frame info:

grep ID_LENGTH moviedata

should do.

Thanks for that, now I know how to do it too!
~Purr

I have Fedora 10, a 80GB hard disk and want to add a new one of 640GB. How can i manage to transfer the data?
Q. I want to transfer the data of 80GB disk to the new one (an 'image' as it is known). I know that exists a specific command through the linux command line(the terminal). I also want to make a partition of the 640GB hard disk. Is there a command also for this?
Thanks!

A. Here are a couple of links for your question:



Nec Projector Review

Plastic Shed Reviews

Ati Graphic Reviews

Nurse Uniforms Reviews

Cabochons Reviews

Inflatable Water Slides Reviews

Barcode Scanner Reviews

Thursday, February 28, 2013

how do you access a remote computer from the linux command line?

Q. i know the sshusername@computername part, but how do i get to the point where i type that in the command line?

A. Take a look at the "ssh" command (manual page linked below from Duke University)

What is the windows equivalent of the Linux terminal's CTRL + D?
Q. I wrote and compiled a c program, and in the Linux command line, it allows me to enter text, then press CTRL + D to enter the next step of the program, if thats what you wanna call it. Ive recompiled the source for windows, and i notice that CTRL + D just types ^D... what key combo should I be using?

A. If the program is looking for end-of-file, use ctrl-Z.

Using command line only, how to I retrieve the exact number of frames in a given video in Linux?
Q. Using command line only, how to I retrieve the exact number of frames in a given video in Linux?

ffmpeg will return the duration in minutes and the framerate but duration*framerate does not give an exact number of frames.

I need to know the exact number of frames.

A. mplayer -identify -fps 1 VIDEOFILE

Then look at
ID_VIDEO_FPS=1.000
ID_VIDEO_ASPECT=0.0000
ID_AUDIO_FORMAT=80
ID_AUDIO_BITRATE=224000
ID_AUDIO_RATE=0
ID_AUDIO_NCH=0
ID_LENGTH=41819.00

Notice how the length, in seconds, is now the exact number of frames. (41819 frames)

If you need it to be interactive-less:
mplayer -msglevel all=0 -identify -fps 1 -vo null -frames 0 VIDEOFILE | grep ID_LENGTH

Or, for a program:
mplayer -identify -fps 1 -vo null -frames 0 -msglevel all=-1 VIDEO > moviedata

then to get the frame info:

grep ID_LENGTH moviedata

should do.

Thanks for that, now I know how to do it too!
~Purr



Nec Projector Review

Plastic Shed Reviews

Ati Graphic Reviews

Nurse Uniforms Reviews

Cabochons Reviews

Inflatable Water Slides Reviews

Barcode Scanner Reviews

Tuesday, February 19, 2013

How do I edit a text using linux command line mode?

Q. I need to edit a text file but I dont know how do you do it using linux in command line mode.

Thanks!

A. pico or nano are good choices for a novice. emacs or vi for an expert

What are the different syntax used in Linux and Windows command line interface?
Q. What are the different syntax used in Linux and Windows command line interface?

A. The Windows one is based on MS-DOS the Linux one is based on UNIX. There's tonnes of differences.

So you do 'ls' instead of 'dir'. 'cd' works the same but uses '/' in Linux and '/' in Windows. There's tonnes of other differences.

All MS-DOS commands are here: http://www.computerhope.com/msdos.htm

Linux ones are here: http://www.oreillynet.com/linux/cmd/

How do I run a web browser from linux command line?
Q. I an VERY new to linux. I have installed Fedora 5 in text mode. I have a Linux book and am trying to slowly learn linux. So from the console, or command line, how do I run a web browser. Also how do I run the X Windows System?

A. If you installed in text mode, maybe you didn't install X. You probably have a text mode browser. Try lynx or elinks. If the startx command doesn't work, try "yum install x-window-system". By the way, Fedora 5 is old. The current version of Fedora is 9.



Nec Projector Review

Plastic Shed Reviews

Ati Graphic Reviews

Nurse Uniforms Reviews

Cabochons Reviews

Inflatable Water Slides Reviews

Barcode Scanner Reviews

Sunday, February 17, 2013

What is the windows equivalent of the Linux terminal's CTRL + D?

Q. I wrote and compiled a c program, and in the Linux command line, it allows me to enter text, then press CTRL + D to enter the next step of the program, if thats what you wanna call it. Ive recompiled the source for windows, and i notice that CTRL + D just types ^D... what key combo should I be using?

A. If the program is looking for end-of-file, use ctrl-Z.

Using command line only, how to I retrieve the exact number of frames in a given video in Linux?
Q. Using command line only, how to I retrieve the exact number of frames in a given video in Linux?

ffmpeg will return the duration in minutes and the framerate but duration*framerate does not give an exact number of frames.

I need to know the exact number of frames.

A. mplayer -identify -fps 1 VIDEOFILE

Then look at
ID_VIDEO_FPS=1.000
ID_VIDEO_ASPECT=0.0000
ID_AUDIO_FORMAT=80
ID_AUDIO_BITRATE=224000
ID_AUDIO_RATE=0
ID_AUDIO_NCH=0
ID_LENGTH=41819.00

Notice how the length, in seconds, is now the exact number of frames. (41819 frames)

If you need it to be interactive-less:
mplayer -msglevel all=0 -identify -fps 1 -vo null -frames 0 VIDEOFILE | grep ID_LENGTH

Or, for a program:
mplayer -identify -fps 1 -vo null -frames 0 -msglevel all=-1 VIDEO > moviedata

then to get the frame info:

grep ID_LENGTH moviedata

should do.

Thanks for that, now I know how to do it too!
~Purr

I want to learn the Windows command line. Ware can i get info or a guide to do so?
Q. i have been using Linux since mid windows xp days. i know the Linux Terminal command line frontwards and backwards. however i only know a few simple commands for the Windows command line. for Ms_Dos and the newer Windows command shell. i want to download a guide of some kind so i can learn the windows command line inside and out. do you know ware i can find such a thing?

A. Check http://www.windows-commandline.com also. They have command line tips for all the useful tasks.



Nec Projector Review

Plastic Shed Reviews

Ati Graphic Reviews

Nurse Uniforms Reviews

Cabochons Reviews

Inflatable Water Slides Reviews

Barcode Scanner Reviews

Sunday, February 10, 2013

How do I reset the numbers on Linux command line prompt?

Q. how do I reset the numbers on the command line prompt:

hostname[1000]%

I noticed when I log in it always starts at 1000 and counts up til I logout and login again. When I login again it still starts at 1000. How do I reset this number? I thought it was the history command, but learned it wasn't.

A. You need to set the prompt variables in your profile file or in the .bash_rc file.

Do a search on "linux .profile" (note the dot in front of "profile"). Look for ways to set the PS1 and PS2 prompts.

How can I safe a javascript generated page to an html file from a linux command line?
Q. Hi,
I have a javascript/ajax page that I'd like to save as the generated html to a file. URL
http://www.neaveru.com/digg/stats/kevinrose/max_comments/0/days/14

Is there a way to do that? I haven't found any firefox command-line like that.
Thanks!
safe?? save! ;)
sorry, I want to run this in a cron... so I can't click ;)

A. from FF & a cron, no way.

there might be some lynx variant or other 'get' tool that does JavaScript.

http://www.google.com/search?q=linux+JavaScript+command+line


you could capture the data that the ajax gets, and save that to a file... but not the graph.

is it your site? a little cgi program instead would be able to capture the graph.

I could do it in Safari on a mac with applescript!

how do you access a remote computer from the linux command line?
Q. i know the sshusername@computername part, but how do i get to the point where i type that in the command line?

A. Take a look at the "ssh" command (manual page linked below from Duke University)



Nec Projector Review

Plastic Shed Reviews

Ati Graphic Reviews

Nurse Uniforms Reviews

Cabochons Reviews

Inflatable Water Slides Reviews

Barcode Scanner Reviews

How can I safe a javascript generated page to an html file from a linux command line?

Q. Hi,
I have a javascript/ajax page that I'd like to save as the generated html to a file. URL
http://www.neaveru.com/digg/stats/kevinrose/max_comments/0/days/14

Is there a way to do that? I haven't found any firefox command-line like that.
Thanks!
safe?? save! ;)
sorry, I want to run this in a cron... so I can't click ;)

A. from FF & a cron, no way.

there might be some lynx variant or other 'get' tool that does JavaScript.

http://www.google.com/search?q=linux+JavaScript+command+line


you could capture the data that the ajax gets, and save that to a file... but not the graph.

is it your site? a little cgi program instead would be able to capture the graph.

I could do it in Safari on a mac with applescript!

how do you access a remote computer from the linux command line?
Q. i know the sshusername@computername part, but how do i get to the point where i type that in the command line?

A. Take a look at the "ssh" command (manual page linked below from Duke University)

What is the windows equivalent of the Linux terminal's CTRL + D?
Q. I wrote and compiled a c program, and in the Linux command line, it allows me to enter text, then press CTRL + D to enter the next step of the program, if thats what you wanna call it. Ive recompiled the source for windows, and i notice that CTRL + D just types ^D... what key combo should I be using?

A. If the program is looking for end-of-file, use ctrl-Z.



Nec Projector Review

Plastic Shed Reviews

Ati Graphic Reviews

Nurse Uniforms Reviews

Cabochons Reviews

Inflatable Water Slides Reviews

Barcode Scanner Reviews

What wireless internet cards work right out of the box for the linux ubuntu operating system, i need to buy on

Q. What wireless internet cards work right out of the box for the linux ubuntu operating system, i need to buy one but I have no clue about any of the linux command lines or anything. I also have a zyxel g router

A. I have a Dell desktop with a LinkSys WMP54GS wireless card. After installing Ubuntu the wireless card was automatically recognized.

How do I reset the numbers on Linux command line prompt?
Q. how do I reset the numbers on the command line prompt:

hostname[1000]%

I noticed when I log in it always starts at 1000 and counts up til I logout and login again. When I login again it still starts at 1000. How do I reset this number? I thought it was the history command, but learned it wasn't.

A. You need to set the prompt variables in your profile file or in the .bash_rc file.

Do a search on "linux .profile" (note the dot in front of "profile"). Look for ways to set the PS1 and PS2 prompts.

How can I safe a javascript generated page to an html file from a linux command line?
Q. Hi,
I have a javascript/ajax page that I'd like to save as the generated html to a file. URL
http://www.neaveru.com/digg/stats/kevinrose/max_comments/0/days/14

Is there a way to do that? I haven't found any firefox command-line like that.
Thanks!
safe?? save! ;)
sorry, I want to run this in a cron... so I can't click ;)

A. from FF & a cron, no way.

there might be some lynx variant or other 'get' tool that does JavaScript.

http://www.google.com/search?q=linux+JavaScript+command+line


you could capture the data that the ajax gets, and save that to a file... but not the graph.

is it your site? a little cgi program instead would be able to capture the graph.

I could do it in Safari on a mac with applescript!



Nec Projector Review

Plastic Shed Reviews

Ati Graphic Reviews

Nurse Uniforms Reviews

Cabochons Reviews

Inflatable Water Slides Reviews

Barcode Scanner Reviews

Sunday, February 3, 2013

How do I reset the numbers on Linux command line prompt?

Q. how do I reset the numbers on the command line prompt:

hostname[1000]%

I noticed when I log in it always starts at 1000 and counts up til I logout and login again. When I login again it still starts at 1000. How do I reset this number? I thought it was the history command, but learned it wasn't.

A. You need to set the prompt variables in your profile file or in the .bash_rc file.

Do a search on "linux .profile" (note the dot in front of "profile"). Look for ways to set the PS1 and PS2 prompts.

How can I safe a javascript generated page to an html file from a linux command line?
Q. Hi,
I have a javascript/ajax page that I'd like to save as the generated html to a file. URL
http://www.neaveru.com/digg/stats/kevinrose/max_comments/0/days/14

Is there a way to do that? I haven't found any firefox command-line like that.
Thanks!
safe?? save! ;)
sorry, I want to run this in a cron... so I can't click ;)

A. from FF & a cron, no way.

there might be some lynx variant or other 'get' tool that does JavaScript.

http://www.google.com/search?q=linux+JavaScript+command+line


you could capture the data that the ajax gets, and save that to a file... but not the graph.

is it your site? a little cgi program instead would be able to capture the graph.

I could do it in Safari on a mac with applescript!

how do you access a remote computer from the linux command line?
Q. i know the sshusername@computername part, but how do i get to the point where i type that in the command line?

A. Take a look at the "ssh" command (manual page linked below from Duke University)



Nec Projector Review

Plastic Shed Reviews

Ati Graphic Reviews

Nurse Uniforms Reviews

Cabochons Reviews

Inflatable Water Slides Reviews

Barcode Scanner Reviews

What wireless internet cards work right out of the box for the linux ubuntu operating system, i need to buy on

Q. What wireless internet cards work right out of the box for the linux ubuntu operating system, i need to buy one but I have no clue about any of the linux command lines or anything. I also have a zyxel g router

A. I have a Dell desktop with a LinkSys WMP54GS wireless card. After installing Ubuntu the wireless card was automatically recognized.

How do I reset the numbers on Linux command line prompt?
Q. how do I reset the numbers on the command line prompt:

hostname[1000]%

I noticed when I log in it always starts at 1000 and counts up til I logout and login again. When I login again it still starts at 1000. How do I reset this number? I thought it was the history command, but learned it wasn't.

A. You need to set the prompt variables in your profile file or in the .bash_rc file.

Do a search on "linux .profile" (note the dot in front of "profile"). Look for ways to set the PS1 and PS2 prompts.

How can I safe a javascript generated page to an html file from a linux command line?
Q. Hi,
I have a javascript/ajax page that I'd like to save as the generated html to a file. URL
http://www.neaveru.com/digg/stats/kevinrose/max_comments/0/days/14

Is there a way to do that? I haven't found any firefox command-line like that.
Thanks!
safe?? save! ;)
sorry, I want to run this in a cron... so I can't click ;)

A. from FF & a cron, no way.

there might be some lynx variant or other 'get' tool that does JavaScript.

http://www.google.com/search?q=linux+JavaScript+command+line


you could capture the data that the ajax gets, and save that to a file... but not the graph.

is it your site? a little cgi program instead would be able to capture the graph.

I could do it in Safari on a mac with applescript!



Nec Projector Review

Plastic Shed Reviews

Ati Graphic Reviews

Nurse Uniforms Reviews

Cabochons Reviews

Inflatable Water Slides Reviews

Barcode Scanner Reviews

Wednesday, January 30, 2013

How can I safe a javascript generated page to an html file from a linux command line?

Q. Hi,
I have a javascript/ajax page that I'd like to save as the generated html to a file. URL
http://www.neaveru.com/digg/stats/kevinrose/max_comments/0/days/14

Is there a way to do that? I haven't found any firefox command-line like that.
Thanks!
safe?? save! ;)
sorry, I want to run this in a cron... so I can't click ;)

A. from FF & a cron, no way.

there might be some lynx variant or other 'get' tool that does JavaScript.

http://www.google.com/search?q=linux+JavaScript+command+line


you could capture the data that the ajax gets, and save that to a file... but not the graph.

is it your site? a little cgi program instead would be able to capture the graph.

I could do it in Safari on a mac with applescript!

how do you access a remote computer from the linux command line?
Q. i know the sshusername@computername part, but how do i get to the point where i type that in the command line?

A. Take a look at the "ssh" command (manual page linked below from Duke University)

What is the windows equivalent of the Linux terminal's CTRL + D?
Q. I wrote and compiled a c program, and in the Linux command line, it allows me to enter text, then press CTRL + D to enter the next step of the program, if thats what you wanna call it. Ive recompiled the source for windows, and i notice that CTRL + D just types ^D... what key combo should I be using?

A. If the program is looking for end-of-file, use ctrl-Z.



Nec Projector Review

Plastic Shed Reviews

Ati Graphic Reviews

Nurse Uniforms Reviews

Cabochons Reviews

Inflatable Water Slides Reviews

Barcode Scanner Reviews

Older Posts Home