Sponsored Content
Top Forums UNIX for Dummies Questions & Answers PS1 directory path not refreshing... Post 302756105 by Scott on Tuesday 15th of January 2013 08:04:03 AM
Old 01-15-2013
You need to put that in single quotes:

Code:
PS1='....'

LOGNAME and HOSTNAME are usually variables, so do you need to "execute" those commands?
This User Gave Thanks to Scott For This Post:
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

refreshing inetd

Hi I have a question, what is the purpose of this command and what will it do "refresh -s inetd" Thanks in Advance Swaraj (3 Replies)
Discussion started by: kswaraj
3 Replies

2. Shell Programming and Scripting

PS1 to show relitive path

Hi I am trying to format my prompt in a KSH to show the relative path currently it is PS1='$PWD >' /home/users/dir/dir/dir > I want to display it as /home/users/.../.../dir > :rolleyes: (2 Replies)
Discussion started by: truma1
2 Replies

3. Solaris

weird problem - terminal not refreshing; sleep not terminating

Hi, I am having a wierd problem in one of the Solaris server. root@ussd # uname -a SunOS ussd 5.8 Generic_108528-24 sun4u sparc SUNW,Sun-Fire-280R The problem is that terminal is not refreshing when we run commands like prstat, tail -f "some log file", sar -u 1 10 Also, sleep... (3 Replies)
Discussion started by: vikas027
3 Replies

4. Shell Programming and Scripting

Retrieve directory path from full file path through sh

Hi, I have a file abcd.txt which has contents in the form of full path file names i.e. $home> vi abcd.txt /a/b/c/r1.txt /q/w/e/r2.txt /z/x/c/r3.txt Now I want to retrieve only the directory path name for each row i.e /a/b/c/ /q/w/e/ How to get the same through shell script?... (7 Replies)
Discussion started by: royzlife
7 Replies

5. Post Here to Contact Site Administrators and Moderators

refreshing page

Dear Admins, I think it would be good if the page is auto-refreshed after some duration. generally I do a manual reload/refresh from browser to get the new post/updates. I am not very sure if its already being done (may be the duration is too long?). (1 Reply)
Discussion started by: clx
1 Replies

6. Shell Programming and Scripting

"find . -printf" without prepended "." path? Getting path to current working directory?

If I enter (simplified): find . -printf "%p\n" then all files in the output are prepended by a "." like ./local/share/test23.log How can achieve that a.) the leading "./" is omitted and/or b.) the full path to the current directory is inserted (enclosed by brackets and a blank)... (1 Reply)
Discussion started by: pstein
1 Replies

7. Shell Programming and Scripting

Refreshing a file in bash

I am creating a file when running a bash script as shown. I want to refresh the file every time, however touch only changes the time stamp. I also need the file with execute permission. I have included redirection ">" the first time to solve the problem (i=1). Any suggestions how I can simplify... (5 Replies)
Discussion started by: kristinu
5 Replies

8. UNIX for Dummies Questions & Answers

Extract directory name from the full directory path in UNIX using shell scripting

My input is as below : /splunk/scrubbed/rebate/IFIND.REBTE.WROC.txt /splunk/scrubbed/rebate/IFIND.REBTE.WROC.txt /splunk/scrubbed/loyal/IFIND.HELLO.WROC.txt /splunk/scrubbed/triumph/ifind.triumph.txt From the above input I want to extract the file names only . Basically I want to... (5 Replies)
Discussion started by: IshuGupta
5 Replies

9. UNIX for Beginners Questions & Answers

Convert Relative path to Absolute path, without changing directory to the file location.

Hello, I am creating a file with all the source folders included in my git branch, when i grep for the used source, i found source included as relative path instead of absolute path, how can convert relative path to absolute path without changing directory to that folder and using readlink -f ? ... (4 Replies)
Discussion started by: Sekhar419
4 Replies

10. UNIX for Beginners Questions & Answers

What is the difference ../directory path and ./directory path in ksh?

What is the difference ../directory path and ./directory path in ksh? (1 Reply)
Discussion started by: TestKing
1 Replies
Permissions(4)						     Kernel Interfaces Manual						    Permissions(4)

NAME
Permissions - Contains information about the permissions that remote computers have with respect to login, file access, and command execu- tion SYNOPSIS
/usr/lib/uucp/Permissions DESCRIPTION
The /usr/lib/uucp/Permissions file contains information about the ways in which the remote computers listed in the Systems file are allowed to carry out uucico and uuxqt transactions with a local system. Be aware that entries in a Permissions file do not affect a remote system user with a valid login on the local computer. Note that you must have root user authority to edit the Permissions file, which is owned by the uucp login ID. The Permissions file has two types of entries: LOGNAME specifies the permissions that take effect when a remote system logs in. These entries begin with LOGNAME. MACHINE specifies permissions that take effect when your system calls a remote system. These entries begin with MACHINE. Both type of entries consist of option-value pairs. You can have as many of these option-value pairs as you want and can write entries for all or only some of the remote sites. Options Specifies whether the remote system can request to set up file transfers from your system. The default is not to allow such requests. This option can be used in either LOGNAME or MACHINE entries. Specifies whether your system can send the work queued for the remote system when the remote system initiates the call. The default is call; that is, the queued files are sent only when the local system calls the remote system. This option is used in LOGNAME entries. Spec- ifies from which directories uucico can read. The default is the /usr/spool/uucppublic directory. This option can be used in either LOGNAME or MACHINE entries. If multiple pathnames are specified, separate them with a colon (:). Specifies to which directories uucico can write. The default is the /usr/spool/uucpublic directory. This option can be used in either LOGNAME or MACHINE entries. If multiple pathnames are specified, separate them with a colon (:). Specify exceptions to the READ and WRITE options. These options can be used in either LOGNAME or MACHINE entries. If multiple pathnames are specified, separate them with a colon (:). Specifies the commands that a remote system can request to be executed on the local system. The default is rmail command. If multiple commands are specified, separate them with a colon(:). This option is used in MACHINE entries. Specifies whether any transactions can occur without the local system calling the remote system. The default is no, that is, the local system must initiate the call to the remote system before any transactions are allowed. If both the remote and local systems use CALLBACK, they will not be able to initiate any jobs. This option can be used in LOGNAME entries. Used to verify the calling system's identity. The values for this option should be the system name or the names of systems allowed to log in using the name specified by LOGNAME. If a system other than those specified in VALIDATE tries to use the name specified by LOGNAME, the connection will be refused. If multiple systems are specified, separate them with a colon (:). This option is used with the LOGNAME entries. Rules for Writing Permissions File Entries The following rules apply for writing Permissions file entries: Each option-value pair has the following format: option=value Blank spaces are not allowed before or after the equal sign. A blank space is used to separate option-value pairs. If an option has one or more values, the values are separated with a colon. Comment lines begin with a number sign (#) and end with a new line. The backslash () is used as a continuation character to continue a line on to the next line on the screen. Blank lines are ignored. All login IDs used by remote systems must appear in one and only one LOGNAME entry. If you do not want to grant permissions to each system by name, the entry MACHINE=OTHER will assign permissions to any system not mentioned by name. You can combine MACHINE and LOGNAME entries into a single entry if the options are the same. EXAMPLES
The following example allows remote system buck to log in with login ID Luucp1. The VALIDATE option means that the login ID uucp1 can only be used by remote system buck. The REQUEST option means that remote system buck can request files to be transferred from the local system. The SENDFILES option means that any requests queued on the local system for work on the remote system will be sent to the remote system during the current session if allowed by remote system buck. The READ and WRITE options mean that remote system can read and write from and to any directory that has proper permissions. LOGNAME=uucp1 REQUEST=yes SENDFILES=yes VALIDATE=buck READ=/ WRITE=/ MACHINE=buck REQUEST=yes COMMANDS=ALL READ=/ WRITE=/ The following example has all the default values of the options, which are as follows: REQUEST=no, SENDFILES=call READ and WRITE=/usr/spool/uucppublic COMMANDS=rmail CALLBACK=no The remote system cannot ask to receive any queued files containing work that users on the local system have requested to be exe- cuted on the remote system. The local system cannot send queued work to the remote system when that system has completed its current operations. Instead, the queued work can be sent only when the local system contacts the remote system. The remote system can send (write) files to and transfer (read) files from only the uucp public directory (/usr/spool/uucppublic/system_name) on the local sys- tem. Users on the remote system can execute only the default command (rmail) on the local system. LOGNAME=uucp2 MACHINE=buck:bigguy The following example is similar to the first. However, this entry allows the remote users of sys- tems waldo and buck to execute only the rmail and /usr/lbin/rnews commands: LOGNAME=uucp3 VALIDATE=waldo:buck REQUEST=yes SENDFILES=yes READ=/ WRITE=/ MACHINE=waldo:buck REQUEST=yes COM- MANDS=rmail:/usr/lbin/rnews READ=/ WRITE= The following example specifies that all remote systems using the uucp4 login ID that are not included in existing MACHINE entries can execute the rmail (mail) and /usr/bin/lint commands on the local system: LOGNAME=uucp4 MACHINE=OTHER COMMANDS=rmail:/usr/bin/lint The following example shows how the MACHINE and LOGNAME entry can be com- bined into one entry. The remote host is darla. The remote system darla should use the login ID xuucp to log in to local system. The rest of the options have the same meaning as explained in the first example. MACHINE=darla LOGNAME=xuucp READ=/ WRITE=/ REQUEST=yes SENDFILES=yes FILES
Contains all the configuration files for the UNIX-to-UNIX Copy Program (UUCP), including the Devices file. Describes accessible remote systems. RELATED INFORMATION
Files: Systems(4) delim off Permissions(4)
All times are GMT -4. The time now is 02:23 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy