Login or Register to Ask a Question and Join Our Community

Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

path_put(9) [centos man page]

PATH_PUT(9)							   The Linux VFS						       PATH_PUT(9)

NAME
path_put - put a reference to a path SYNOPSIS
void path_put(const struct path * path); ARGUMENTS
path path to put the reference to DESCRIPTION
Given a path decrement the reference count to the dentry and the vfsmount. COPYRIGHT
Kernel Hackers Manual 3.10 June 2014 PATH_PUT(9)

Check Out this Related Man Page

remove(3)						     Library Functions Manual							 remove(3)

NAME
remove - Removes a file LIBRARY
Standard C Library (libc.so, libc.a) SYNOPSIS
#include <stdio.h> int remove( const char *path ); STANDARDS
Interfaces documented on this reference page conform to industry standards as follows: remove(): POSIX.1, XPG4, XPG4-UNIX Refer to the standards(5) reference page for more information about industry standards and associated tags. PARAMETERS
Points to the file to be removed. DESCRIPTION
The remove() function causes a file named by the pathname pointed to by path to be no longer accessible by that name. A subsequent attempt to open that file using that name will fail unless it is created anew. If the path parameter names a directory, remove(path) is equivalent to calling the rmdir() function on that directory. If path does not name a directory, remove(path) is equivalent to unlink(path). NOTES
If the file operated upon by the remove() function has multiple hard links, the link count in the file is decremented and only the speci- fied file name is removed. RETURN VALUES
Upon successful completion, the remove() function returns 0 (zero). Otherwise, a nonzero value is returned. Refer to the unlink() function and the rmdir() function for information on return values. ERRORS
Refer to the unlink() function and the rmdir() function for information on error conditions. RELATED INFORMATION
Functions: link(2), rename(2), rmdir(2), unlink(2) Standards: standards(5) delim off remove(3)
Man Page

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Making your script "universal"

I'm currently using Sun Solaris Unix. How can you make your unix bash or C script usable in all directories and subdirectories and not just the dir the script is located in? Essentially, to make it a command script as universal as a basic unix command like ls or cd. Thanks for the help! (4 Replies)
Discussion started by: axeldrummer
4 Replies

2. Shell Programming and Scripting

FTP Problem

Hello experts, I've got the following script that is supposed to FTP a file to another box. #!/usr/bin/ksh while read line do HOST=`echo "$line" | cut -d" " -f1` USER=`echo "$line" | cut -d" " -f2` PASSWD=`echo "$line" | cut -d" " -f3` PATH=`echo "$line" | cut -d" " -f4` done <... (5 Replies)
Discussion started by: King Nothing
5 Replies

3. Shell Programming and Scripting

KERBEROS_V4 -help needed ASAP

#!/bin/sh HOST='ftp.bend.com' USER='temp1' PASSWD='temp2' FTPPATH='SY1:' ifile='concat.txt' #FTP concatenated file ftp -n $HOST <<END_SCRIPT quote USER $USER quote PASS $PASSWD binary cd $FTPPATH put $ifile get $ifile retrieval.$$ quit END_SCRIPT if then echo "FTP of... (2 Replies)
Discussion started by: Sgiri1
2 Replies

4. Shell Programming and Scripting

what to do after "expect"

I was able to use expect successfully, I think, but what to do after? Here's my goal: use expect to log in to a remote terminal with sftp copy over some files from my local computer to the remote computer run a process on the remote computer on these files copy the output back to my local... (1 Reply)
Discussion started by: evanthebouncy
1 Replies

5. UNIX for Dummies Questions & Answers

SFTP Coding issue

Hi I am trying to SFTP file from source_path to Destination_path. For this I wrote the below script: cd $source_path sftp $user_name@$target_server pwd cd $destination_path put $filename After connecting to target_server via sftp, pwd should be target server home path but it is... (1 Reply)
Discussion started by: krishna87
1 Replies

6. Shell Programming and Scripting

FTP Transfer fails at first time. Kindly help

This is the command we use to transfer the file to destination we ran this command from batch job. first time it hangs. when we cancel and ran it again it works in 5 sec. anyone come out without solution..? ftp -n destinationftp << CMDEND user user/passwd lcd ${root}path cd path put... (1 Reply)
Discussion started by: shenthil76
1 Replies

7. Shell Programming and Scripting

./CARE_SM_SFTP.sh[27]: put: not found error while doing sftp

Hi, I am getting the below error while doing sftp in a script file but the same is getting executed when i run from command prompt ./CARE_SM2_SFTP.sh: put: not found Code :- sftp ${USER_ID}@${FTPHOST4}:/opt/path put <Filename with path> chmod 777 <FileName with Path>... (2 Replies)
Discussion started by: satishmallidi
2 Replies

8. Shell Programming and Scripting

SFTP batch not renaming file with "put"

I have a .ksh script that creates an sftp batch file and runs it through sftp. It works except for one thing. If I try to "put" to a different name, it doesn't use the specified remote name...it still "puts" the original local name. I've tried both of these, and neither work...it will always... (4 Replies)
Discussion started by: dbiggied
4 Replies

9. Shell Programming and Scripting

Time in filename

Hi, I've some files that I want to send them daily via ftp. Date and time are a part of filename, for example: abcd_deft_2018-02-21_100012 abcd_mnpo_2018-02-21_100020 These files are created at 10 am and should be sent 17 pm. Time is different in filename but all begins with 10. How can I... (11 Replies)
Discussion started by: Home
11 Replies

Featured Tech Videos