Sponsored Content
Full Discussion: untar
Operating Systems AIX untar Post 302263762 by Neo on Tuesday 2nd of December 2008 12:23:42 PM
Old 12-02-2008
Well, this is not the way I would do it, but in theory you could create a symbolic link, linking samba to the current directory and untar in that (current) directory Smilie

Not sure why you would do it, but it is possible by creating the symlink.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Untar to different location

Hi, I'm facing problem of untar'ing the tar contents with absolute pathnames to a different directory. Please provide me some hint on how to resolve it. Regards, Pradeep (1 Reply)
Discussion started by: pradeep_desh
1 Replies

2. UNIX for Advanced & Expert Users

Urgent....untar!!!

HI UNIX GURUS... I am facing the a similar problem which malaymaru has posted earlier raegarding untaring a file in some other specified directory.But the solution by UNIX DAEMON "Perderabo" seems little difficult to understand.(USING #pax -r -s '=^/opt/abc=/tmp=' < tarfile) So plz explain... (4 Replies)
Discussion started by: rahul26
4 Replies

3. UNIX for Dummies Questions & Answers

untar to a specified file

I have file1.tar and want to untar it under /server/file2. If I do tar -xvf file1.tar, the files will be deployed under file1. How to specify the destination folder?? thx (3 Replies)
Discussion started by: melanie_pfefer
3 Replies

4. UNIX for Advanced & Expert Users

untar

i have try to untar the file in same location. But it gave the error # tar -xvf TSMSRVAIX5220.tar x tivoli.tsm.devices.acsls, 757760 bytes, 1480 media blocks. tar: 0511-169 A directory checksum error on media; 4011 not equal to 8222. How can i rectify this prob. Thanks in advance ... (2 Replies)
Discussion started by: prakash96453
2 Replies

5. UNIX for Dummies Questions & Answers

Untar problems

Hi, I am new to unix scripting. I have written a java program which will initialize a sftp connection and copy a unix script from my machine to a remote server. Then i initalized an ssh connection and i executed the script. This script contains a sequnece of commands and one of them is to... (2 Replies)
Discussion started by: vinothg
2 Replies

6. Shell Programming and Scripting

Untar remotely

I need to upload tar or zip files to a unix server than unzip or untar them remotely. Any suggestions on the easiest way to do the remote untar or unzip? For example does someone know of a cgi script or something? Thanks -jz (3 Replies)
Discussion started by: jwzumwalt
3 Replies

7. Shell Programming and Scripting

cp, chown, untar

hello i want shell script. i have a source.txt /home/user409/public_html/test/ /home/user09876/public_html/xdsss/ /home/user9765/public_html/320xxx/ . . . maybe 1000 lines i want . 1.read a source.txt 2.untar special.tar.gz into these directory in source.txt 3.i want to... (14 Replies)
Discussion started by: topic32428285
14 Replies

8. Shell Programming and Scripting

Not able to untar file

Hello Experts, I have requirement in which a file is present in the folder_test. In that folder there is file called Test.tar.gz.20111102. Now my requirement is i have to rename this file to someother format and untar it.... folder_test Test.tar.gz.20111102 I am using the below... (5 Replies)
Discussion started by: aks_1902
5 Replies

9. Solaris

Unable to Untar

Hello, bash-2.05# tar -xvf sunos.tar tar: directory checksum error bash-2.05# file sunos.tar sunos.tar: data bash-2.05# Can someone please help me untar this. This is a Solaris 9 box. (5 Replies)
Discussion started by: zigi_p5
5 Replies

10. Shell Programming and Scripting

Untar fail

Hi Team, I have a file named as follows: aaa.tar.gz Now I need to verify if the untar fails, then the script has to send a mail. In order to check this condition, I need a tar.gz file which is unable to untar it. Can anyone help me to create a file which I will be able to unzip successfully... (2 Replies)
Discussion started by: kmanivan82
2 Replies
symlink(2)							System Calls Manual							symlink(2)

NAME
symlink - make symbolic link to a file SYNOPSIS
DESCRIPTION
The function creates a symbolic link. Its name is the pathname pointed to by path2, which must be a pathname that does not name an existing file or symbolic link. The contents of the symbolic link are the string pointed to by path1. RETURN VALUE
Upon successful completion, returns 0. Otherwise, it returns -1 and sets to indicate the error. ERRORS
If fails, is set to one of the following values: [EACCES] Write permission is denied in the directory where the symbolic link is being created, or search permission is denied for a component of the path prefix of path2. [EEXIST] The path2 argument names an existing file or symbolic link. [EFAULT] path1 or path2 points outside the process's allocated address space. The reliable detection of this error is implementation-dependent. [EIO] An I/O error occurred while reading from path1, making the directory entry for path2, allocating the inode for path2, or writing out the link contents of path2. [ELOOP] Too many symbolic links were encountered in resolving path2. [ENAMETOOLONG] The length of the path2 argument exceeds or pathname resolution of a symbolic link produced an intermediate result that exceeds or a pathname component is longer than [ENOENT] A component of path2 does not name an existing file or path2 is an empty string. [ENOSPC] The directory in which the entry for the new symbolic link is being placed cannot be extended because no space is left on the file system containing the directory, or the new symbolic link cannot be created because no space is left on the file system which will contain the link, or the file system is out of file- allocation resources. [ENOTDIR] A component of the path prefix of path2 is not a directory. [EROFS] The new symbolic link would reside on a read-only file system. APPLICATION USAGE
Like a hard link, a symbolic link allows a file to have multiple logical names. The presence of a hard link guarantees the existence of a file, even after the original name has been removed. A symbolic link provides no such assurance; in fact, the file named by the path1 argu- ment need not exist when the link is created. A symbolic link can cross file system boundaries. Normal permission checks are made on each component of the symbolic link pathname during its resolution. AUTHOR
was developed by the University of California, Berkeley. SEE ALSO
cp(1), chown(2), link(2), lstat(2), open(2), readlink(2), unlink(2), symlink(4), <unistd.h>. STANDARDS CONFORMANCE
CHANGE HISTORY
First released in Issue 4, Version 2. symlink(2)
All times are GMT -4. The time now is 07:54 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy