Sponsored Content
Top Forums Programming Accessing directories in Linux Post 302985755 by pinbot on Monday 14th of November 2016 10:56:42 PM
Old 11-14-2016
I think I understand the problem now

what windows sees as D:\Base\cpics

linux sees /media/mint/Storage/Base/cpics

And writing
Code:
sprintf(cbuf,"cp %s //media//mint//Storage//Base//cpics//%s",ccc,newpic);

isn't an option for portability reasons, as I need to copy to the same drive that the program is run from and these mount points could change.



Moderator's Comments:
Mod Comment Please use CODE tags as required by forum rules!

Last edited by RudiC; 11-15-2016 at 07:29 AM.. Reason: Added CODE tags.
 

10 More Discussions You Might Find Interesting

1. IP Networking

Problem accessing network using Linux

Ok, here at work, we have Windows computers which login into a MS domain server. Some of us also have Linux boxes which get a ip address from the dhcp server. We can see other boxes and see the internet until about 1 week ago. Now, we still get a ip address but can't see anything within our... (3 Replies)
Discussion started by: natter
3 Replies

2. Linux

Accessing FTP on Linux

Hi, I've setup an FTP server on my linux box (RH 9.0). I've configured so the vsftpd daemon is running in runlevel 5, etc. However, I have difficulty logging-on, as it will not authenticate any valid user (inlcuding anoymous). Everything seems ok in the /etc/vsftpd/vsftp.d.conf and... (4 Replies)
Discussion started by: Breen
4 Replies

3. IP Networking

Accessing a FTP Server hosted on Linux

We have set-up a FTP server on a Linux machine, which sits behind a firewall. Most users outside our firewall can access it, but one user in particular cannot. I assume it has something to do with their firewall rules. It appears that they can connect with no problem but the server does not grant... (1 Reply)
Discussion started by: Breen
1 Replies

4. UNIX for Dummies Questions & Answers

Accessing UNIX Data over LINUX

Hello! Unfortunatly i'm totaly new with UNIX and LINUX... Actually Problem is i have some data on floppy disk which was written on UNIX system 5 version now i have installed LINIX ver 9 is there any way i can access unix data on linux 9? if so please reply me with commands i shall be very... (2 Replies)
Discussion started by: xohaib
2 Replies

5. IP Networking

Accessing linux via telnet

I have installed linux in my virtual PC under my windows system. I am trying to access it via windows using putty but i couldn't do so. Could you please help me gurus. (4 Replies)
Discussion started by: Krrishv
4 Replies

6. Red Hat

accessing windows 2k3 partition from Linux Advance Server 3

Dear all i hav dual operating system ie windows 2003 and Red Hat Advance Server3 trying to mount windows partition on linux operating system using the following method 1)mkdir /mnt/windows 2)mount -t ntfs /dev/hda1 /mnt/windows mount: fs type ntf not supported by kernel and my kernel... (2 Replies)
Discussion started by: maooah
2 Replies

7. UNIX for Dummies Questions & Answers

Looking for application that simplifies for non techie people accessing unix/linux env

Hello all I searched the net but didn't found any application that wrap ssh connection with GUI interface so that non techie people can connect to unix/linux accounts and work with files , so it will looks like there familiar Microsoft windows directory structure . Please don't answer with ..... (6 Replies)
Discussion started by: umen
6 Replies

8. Linux

Problem in accessing Oracle Database Server from Linux Machine

I am facing a strange issue in connecting to Oracle database from Linux Machine - The connectivity is not failing all the time , the failure to success ratio is 1:70. - Error "ORA-12545: Connect failed because target host or object does not exist" - Majority of the time the connection... (6 Replies)
Discussion started by: balaji kumar
6 Replies

9. Shell Programming and Scripting

Accessing multiple directories in loop

Hi Guys, I need to access multiple directories whcih is following similar structure and need to copy those files in desitination path. for eg : if ] then cd ${DIR}/Mon/loaded echo "copying files to $GRS_DIR" cp * ${DIR}/Mon/ echo "Files of Monday are Copied" fi if ] then... (5 Replies)
Discussion started by: rohit_shinez
5 Replies

10. UNIX for Dummies Questions & Answers

Linux question on directories..

Hi, First server every thing is working but keeps crashing so to be on the safe side created second server and moved all the files. But I notice there is a " dot " at the end. See below. Not sure what that means. Also getting 403 on Apache. Please see below. Thanks you so much. ls -l... (4 Replies)
Discussion started by: samnyc
4 Replies
gentapes(1)						      General Commands Manual						       gentapes(1)

NAME
gentapes - Produces magnetic tape distribution media SYNOPSIS
/usr/bin/gentapes [-w | -v] [hostname:] prodID devname OPTIONS
Writes the product media without verification. Do not use the -w option with the -v option. Verifies the product media without writing it first. This assumes that you have already written kit files to the distribution media. Do not use the -v option with the -w option. The -w and -v options are mutually exclusive. If neither is used, the gentapes utility writes and then verifies the product media. OPERANDS
The optional hostname: argument is the name of a remote network machine that contains the kit descriptor database. The gentapes utility searches the kit descriptor database on the remote machine for the kit identifier (prodID[TK|MT]) and uses it to create the media. The colon (:) is a required delimiter for TCP/IP networks, and space is permitted between the colon and the prodID. For example, if the prod- uct code is OAT100 and you are using the kit descriptor database on node mynode, use mynode:OAT100 for this option. The mandatory prodID operand is a kit identifier consisting of the product code and version number specified in the CODE and VERS fields of the kit's key file. Refer to the Guide to Preparing Product Kits for information about the key file. The mandatory devname operand specifies the device spe- cial file name for a no-rewind tape device such as /dev/ntape/tape0l. The gentapes utility uses the default tape density for the device and ignores any suffix specified on the command line. DESCRIPTION
Use the gentapes utility to produce MT9 or TK50 magnetic tape distribution media. The gentapes utility performs the following tasks: Deter- mines the media code (TK or MT) for the specified tape device. Appends the media code to the product code specified on the command line. Searches the kit descriptor database for the combined product code and media code. The default kit descriptor database is the /etc/kitcap file. Copies files and subsets specified in the kit description to the distribution media. If you specified verification, rewinds and reads the tape, using the sum utility to verify file transfer accuracy. Refer to the sum(1) reference page for more information about this utility. If you do not use either of the -w or -v options, the gentapes utility writes and then verifies the product media. The gentapes utility can produce multivolume tape kits and multiproduct tape kits. See the kitcap(4) reference page for information on specifying these features. RESTRICTIONS
You must have root privileges to run this program. If you use the optional hostname operand, you must have root privileges to access files on the remote host. If you do not use the optional hostname operand, you can access the files used by the gentapes utility only if you add the local hostname to the local /.rhosts file, as follows: hostname root. The -w and -v options are mutually exclusive. FILES
Device special files for no-rewind tape devices Default kit descriptor database SEE ALSO
Commands: gendisk(1), sum(1) Files: kitcap(4) Guide to Preparing Product Kits gentapes(1)
All times are GMT -4. The time now is 01:38 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy