General :: Write File And Display In Terminal At Same Time

Sep 30, 2010

How can we write a file and display in terminal at the same time. Like for example, when I do..
php -f file.php > testfile
That should save right.. but I want to display it in terminal otherwise.

View 4 Replies


ADVERTISEMENT

General :: Real Time File Creation In Terminal?

Aug 2, 2010

I was wondering if there is a command to show a real-time creation of files. I basically executed a command that will created thousands of files and takes a long time. I want to check if it is still creating additional files or if ti got frozen.

View 3 Replies View Related

General :: Show Output On Terminal And Save To A File At The Same Time?

Jul 1, 2010

I am using:

user@unknown:~$ sudo command -option > log

to save the results of "command" to the file "log", but I'd like to also get the result on the terminal, is this possible?

I am using ubuntu 10.04 lts.

View 3 Replies View Related

Ubuntu :: Write To A File From Terminal?

Aug 21, 2011

I have created a file newfile.txt using: touch newfile.txt Now I want to write to that file from terminal i.e whatever I will type after the $ will be written to the file this is what I want. How can I do that?

View 6 Replies View Related

General :: Terminal Emulator For GNOME With Display Features Like Mac OS X Terminal?

Mar 5, 2011

Is there a terminal emulator which works well in an Ubuntu desktop and provides the following features which Mac OS X's Terminal application has? Re-wrapping text when the window is resized.A Clear command which clears scrollback (as the shell clear does not) and does not clear the cursor's line (typically containing a prompt).

View 2 Replies View Related

Software :: Live - Real-time Text-file Updates In Terminal

Jan 13, 2010

I want to have a terminal open and have something like a "repeating cat" command running in it for a certain text file (in particular /var/log/system.log). So my terminal will scan or cat the text file every so often or whenever the text file system.log gets written to by the system, it will display whatever it wrote to the file in my terminal that is open.

View 2 Replies View Related

General :: Display On Two Machines At Same Time

Mar 18, 2011

I'd like to know if it's possible to set the DISPLAY environment variable in order to display on two machines, the local and the remote, at the same time.

View 2 Replies View Related

General :: How To Display Users Log On Time?

Feb 28, 2010

I was wondering how could I display a list of all of my users and their log on time, you know like small reports on what user was connected for how long.

View 5 Replies View Related

OpenSUSE :: Software To Display Time From Multiple Time Zones?

Jun 15, 2011

I'm looking for a program that will digitally display the time in three different cities - all showing at once. I don't care if it is a panel applet or stand-alone. I'm using Suse 11.3 and Gnome.

View 5 Replies View Related

Ubuntu :: Every Time Open A .conf File It Pops The "Do You Want To Run Or Display Its Content?"

Sep 16, 2010

I'm working with .conf files which I need to edit (with gedit for example) and an .sh file which I need to run occasionally.

And every time I open a .conf file it pops the "Do you want to run or display its content?" question.

I tried to configure Nautilus to stop prompting me every time by setting the Edit->Preferences->Behavior to Run executable text files when they are opened.

But now every time I try to run the .sh file it opens it in gedit instead of running it.

Is there anyway to set the behavior for specific file types?

Like so it'd open the .conf files in a text editor and run the .sh files?

(Maybe I should mention that I'm running Ubuntu 10.04 with Gnome)

View 5 Replies View Related

General :: Export Display From A Terminal To A Windows PC?

Aug 20, 2011

Exporting display from a Linux terminal to a Linux desktop is easy; you do the following:

On 192.168.90.121 (localPC):

xhost + 192.168.10.164

On 192.168.10.164 (remotePC):

export DISPLAY=192.168.90.121:0.0 <br/>
firefox

The Firefox window appears on my localPC. In the above case both PCs are Linux.

Can I similarly export the Linux display to a Windows PC? In the above example, localPC would be Windows and remotePC would be Linux.

View 1 Replies View Related

General :: Script To Display Modified Date&time Of Files?

May 31, 2010

I am using the following script to creates list of accessed files.I like to add modified date and time of accessed files in the output.

For this what needs to be added in the below script??

#!/bin/bash
#
# creates list of accessed files
#
set $(date)
find /hdc160GB/programmers/projects -cmin -1440 > /hdc160GB/programmers/data/fileschanged/alert_$6-$2-$3.txt

View 7 Replies View Related

General :: Display String In Row / Column - Time Sorting Operation?

Aug 13, 2010

1. Given a string, row no. and col. no., I want to display it in the screen appropriately. how to do this?
2. How can I find the cpu processing time taken in carrying out the sorting task (any sorting program)?

View 4 Replies View Related

General :: Remove Write-Protected File - Will It Actually Delete The Password File?

Jul 30, 2010

When I ls -l /etc/passwd, -rw-r--r-- 1 root root /etc/passwd When I login as myself, and rm /etc/passwd, it asks: rm: remove write-protected file '/etc/passwd'? If I say yes, will it actually delete the passwd file?

View 1 Replies View Related

General :: GUI Desktop Display Distorted After Entering Virtual Terminal

Sep 18, 2009

I am having an issue with my GUI desktop display. I switched from the desktop to a virtual terminal using Ctrl+Alt+F2. Upon returning to the GUI desktop (Ctrl+Alt+F7), my display is all garbled up. I tried changing the resolutions, and it does not make a difference. I tried rebooting and the display is still bad.

View 1 Replies View Related

General :: Automatically Open Terminal At Login Time?

Jun 7, 2011

I am using red hat .I want that when ever the user login in GUI interface the terminal windows automatically open and then the user want to logout it 1st close the terminal and then login. There is a file in #ls -a i.e .bashrc and .bash_logout

View 13 Replies View Related

General :: Remove Warning - Which Appears Every Time When Open A Terminal?

Jun 15, 2011

How to remove this ever occuring Warning, which appears every time I open a terminal?

* Warning: removing empty lock file
* Error: failed to remove empty lock file
* Error: failed to get the lock: /usr/bin/keychain: 1492: cannot create /home/prashant/.keychain/http://prashant-laptop.promptcloud.com/-lockf: Directory nonexistent

View 1 Replies View Related

Fedora :: Erroneous Write During File Extend. Write -1 Instead Of 4096

Nov 17, 2009

Ive installed Gaussian '03 on fedora Core 10, but I'm unable to run it. It aborts and i get the following error

Code:

Erroneous write during file extend. write -1 instead of 4096
Probably out of disk space.
Write error in NtrExt1

View 3 Replies View Related

General :: Parsing File Dates - Get The Date Of The Last Time A File Was Modified ?

Jan 11, 2010

I need to get the modified date on a file in linux to use in a script.I tried using 'ls -l' on the file, but this caused problems when the date turned from a single digit into a double. The reason for the problem was because I was parsing the result string on spaces.How can I get the date of the last time a file was modified so I can use it in a script? For example, if a file was modified on 1/11/2010, I need the 11.

View 2 Replies View Related

General :: Can't Write To A File

May 24, 2011

I'm writing a script/plugin for Nagios for testing a WebLogic server.. I redirect some output to a file, and then i read that file to get some data, but i can't seem to write to that file with my script :s... this is the most important code

[Code]...

* EDIT * When i execute this script through a local terminal (PuTTy), it works but when i execute it from Nagios, it doesn't work..

View 5 Replies View Related

General :: Shell Scripting \ (test If A File Is Empty, If It Is Then Display "file Is Empty" Otherwise Display "file Is Not Empty")?

Oct 5, 2010

I am a final year student doign Computer systems engineering and just been introduced to linux. While still strugling to catch up with the commands, I am now given an assignment under shell scripting.I seriously am strugling to understand this question, can you please assist me.Here follows the assignment:

Operating Systems III
Some tips
e.g. (test if a file is empty, if it is then display "file is empty" otherwise display

[code]....

View 10 Replies View Related

General :: Able To Write On Stdout But Not In A File

Aug 16, 2011

I want to keep a trace of the URL I visit, so I use a command line like this:

tcpdump -ien1 -v -X 'tcp port 80' | sed -nl
's/^.0x[0-9a-f]{4}:.{43}(.)$/1/p' |perl break.pl |perl -pe
's/(GET|POST).(.*?).HTTP/1....Host:.([a-zA-Z._0-9-]*)../"
BEGURL

[Code]....

I also tried redirecting stdout and stderr to /tmp/out, it's still empty. The file has write access. I have no idea what it can be. Is there anything else than stdout and stderr?

View 2 Replies View Related

General :: How To Write A Script File

Apr 16, 2010

I want to write a shell script file for the below subject

subject / situation : i have many users say user1, user2, user3, user4 and so on... within my /home dir

Within a user dir say.. /home/user1 i have many unwanted files. these unwanted files start with the name core for eg. core2324, core9789, core 9079 etc.. i need to delete them.

I want to write an automated script for this, which can do the same. How to write a script which can delte these unwanted core files which exist in all user dirs.

View 12 Replies View Related

General :: Open A Script File (same File Every Time)?

Aug 12, 2010

I need to goto a folder, open a script file (same file every time). The file has different function calls, I need to comment all other function calls and just un-comment the one I want to use.

#call_1
call_2
#call_3

[code]....

View 14 Replies View Related

General :: Read .gz File Direct On Shell/terminal Without Decompressing The File?

Dec 9, 2008

How can I read .gz file direct on shell/terminal without decompressing the file?
satimis

View 5 Replies View Related

General :: Windows Access The File From Ubuntu Got Read Only Even Though Have A Full Permission To Read, Write And Execute The File?

Feb 4, 2010

What are the possible problem when Windows access the file from Ubuntu got Read Only even though have a full permission to read, write and execute the file? Ubuntu to Ubuntu accessing the file there is no problem only Windows got a problem.

View 1 Replies View Related

General :: Display File From Line # To End Of File?

Oct 27, 2010

I know how to display contents at the end of beginning of a file or even at specific lines but how to you display a file from line # to the end of the file?

View 5 Replies View Related

General :: File Permission. Write And Execute Only?

Jan 11, 2011

Is there any use if a file has only write and execute permission and not read permission?

View 2 Replies View Related

General :: Read/Write Xml File Through C++ Code?

Mar 18, 2011

I am trying to write a C++ Code to read write a XML file in C++.I researched a lot and find xerces is used for that but I am not able to write the code for that.Please provide me some links on how to run a code that R/W a xml file in C++.

View 1 Replies View Related

General :: Write File To A Specific Sector?

Jun 28, 2010

I need to copy a file into a Flash memory which is connected to my computer via USB. The file must start at a specific sector.
Can anyone guide me how to do this? (it can be through a C program, a line command, or any other way)

View 8 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved