Desktop productivity for business analysts and programmers

How to get Linux 'ls -l' command to print output to the log in SAS Enterprise Guide

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 12
Accepted Solution

How to get Linux 'ls -l' command to print output to the log in SAS Enterprise Guide

I would like to change read/write permission for some folders I have on a server.  I know that I can use x commands in SAS EG to do this and commands like

x cd '/filepath/';

and

x pwd;

both run and print output to the log.  However, when I try to run

x ls -l;

so I can see the current permissions of folders in the directory, nothing prints to the log.  Conceptually, this is all new to me so I am sure I am missing something simple.

 

Thanks in advance for your help.  


Accepted Solutions
Solution
‎12-13-2017 07:44 AM
Super User
Posts: 23,958

Re: How to get Linux 'ls -l' command to print output to the log in SAS Enterprise Guide

Posted in reply to GeorgeBonanza
   Filename filelist pipe "ls -l"; 
                                                                                   
   Data _null_;                                        
     Infile filelist truncover;
     Input filename $100.;
     Put filename=;
   Run; 

View solution in original post


All Replies
Super User
Posts: 23,958

Re: How to get Linux 'ls -l' command to print output to the log in SAS Enterprise Guide

Posted in reply to GeorgeBonanza
X commands are usually turned off on EG, but if they're not in your environment something like the following will work.
Solution
‎12-13-2017 07:44 AM
Super User
Posts: 23,958

Re: How to get Linux 'ls -l' command to print output to the log in SAS Enterprise Guide

Posted in reply to GeorgeBonanza
   Filename filelist pipe "ls -l"; 
                                                                                   
   Data _null_;                                        
     Infile filelist truncover;
     Input filename $100.;
     Put filename=;
   Run; 
Occasional Contributor
Posts: 12

Re: How to get Linux 'ls -l' command to print output to the log in SAS Enterprise Guide

This works well.  Thanks for your help.

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 3 replies
  • 210 views
  • 3 likes
  • 2 in conversation