LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Closed Thread
  Search this Thread
Old 04-03-2015, 05:55 PM   #1
JulianMane
LQ Newbie
 
Registered: Apr 2015
Posts: 7

Rep: Reputation: Disabled
Question How do i Redirect the w command to a user.$TIME file


i just created a Dir called sysadmin1/my_peeps_$DATE

But i want to redirect the output of the w command into that dir. how would that work??
 
Old 04-03-2015, 06:01 PM   #3
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,263
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
Quote:
Originally Posted by JulianMane View Post
i just created a Dir called sysadmin1/my_peeps_$DATE

But i want to redirect the output of the w command into that dir. how would that work??
PLEASE read the posts encouraging you to post in a single place.

Posting the same question multiple times is bad form and in violation of LQ rules. Doing so in a short period of time is considered rude and bad form...
 
  


Closed Thread



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] unable to redirect command output into a file rohitchauhan Linux - General 5 03-27-2014 12:27 AM
How to make output redirect to a file and at the same time display on consloe? chinabenjamin66 General 1 05-01-2013 10:33 PM
How to redirect the SCP command output to text file. gokuls Linux - General 10 02-22-2012 02:12 AM
Redirect output of a command to another file inside shell script mukul_d Linux - General 4 08-27-2010 02:23 PM
[SOLVED] In bash, how do you show prints and at the same time redirect it to a file? archieval Linux - General 2 07-13-2010 03:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:56 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