Try
I also suggest you eliminate the cd and the prompt commands. In other words don't stack commands, include the full path in the filename rather than having to CD. I don't see the value of why you need to issue the prompt commands. Simplify!
Last edited by blackrageous; 07-10-2014 at 12:46 PM..
Reason: typo
Hi ,
I am new to the unix .
And right now I have a unix machine "test" . I want to share a folder in the /opt/example .AND I hope when I use a windows machine to access the unix machine ,ep:start->cmd->\\test,I can see the shared folder "example",
what shall I do
thanks :) (2 Replies)
Hi
I am trouble parsing through a file with spaces in the filename. I need to grab "supportIDPS/SCM/windows_install/file groups/dds.fgl" and then do a md5sum on it. I am using sh.
Any help is appreciated.
Here is an example of the input file:
7eedbc9f7902bf4c1878d9e571addf9a ... (4 Replies)
I'm trying to setup Samba in a solaris zone... Is there a way to setup Samba so that every Windows machine that tries to connect to the share always gets it mounted under the same drive letter (e.g. H:)???
My Samba share (in smb.conf)
/home/pickup
I want that all Window users get it mounted... (3 Replies)
Hi everyone! I'm trying to run a script when a folder is shared and when it stop being shared.
Is there something like .start_share or .stop_share scripts in Samba where I could run some commands?:confused:
edit: maybe with a wrapper in smbmount but I share folders via nautilus. Any ideas? (0 Replies)
Hi everyone.
I have several shares (see smb.conf below). Each setup fairly similarly, and several groups. My end goals are:
1) to have the share automatically map as the P: drive to members of the employees group
2) to have the share automatically map as the t: drive to members of the tech... (0 Replies)
Hi All, I've been trying to configure samba on Solaris 10 to allow me to have one share that is open and writable to all users and have the rest of my shares password protected by a generic account.
If I set my security to user, my secured shares work just fine and prompt accordingly, but when... (0 Replies)
I'm looking to do pretty much what the title says.
I want a script that runs, it can run on Unix or Windows, doesn't matter, and searches a Samba shares for a .txt file.
If the file exists, the script will move (or possibly copy) the file from the Samba share into a directory on our Unix... (3 Replies)
Hi,
I am using RedHat 6 and ,I am trying to force a domain user (from Windows AD) to take ownership of a file when it is created, or copied on a Samba share. I have managed to get this working for the root user using the code below:
COMMENT = IT Data Share
path =... (2 Replies)
Long running samba share. Never have any problems,
Suddenly started asking windows users for password - which doesnt work. Tried to manually reset smb password and manually map - still wrong password.
Restart samba? (2 Replies)
Hi,
I need to mount a directory from a Windows server to a CentOS box.
The Windows server used is Windows Server 2003, and the path to the directory that I want to mount on CentOS is C:\Tomcat6\webapps\NASApp\logs.
I am not sure of the correct way to mount this on CentOS, as most of the... (2 Replies)
Discussion started by: anaigini45
2 Replies
LEARN ABOUT SUNOS
mt
mt(1) User Commands mt(1)NAME
mt - magnetic tape control
SYNOPSIS
mt [-f tapename] command... [count]
DESCRIPTION
The mt utility sends commands to a magnetic tape drive. If -f tapename is not specified, the environment variable TAPE is used. If TAPE
does not exist, mt uses the device /dev/rmt/0n.
OPTIONS
The following option is supported:
-f tapename Specifies the raw tape device.
OPERANDS
The following operands are supported:
count The number of times that the requested operation is to be performed. By default, mt performs command once. Multiple opera-
tions of command may be performed by specifying count.
command Available commands that can be sent to a magnetic tape drive. Only as many characters as are required to uniquely identify
a command need be specified.
eof Writes count EOF marks at the current position on the tape.
weof
fsf Forward spaces over count EOF marks. The tape is positioned on the first block of the file.
fsr Forward spaces count records.
bsf Back spaces over count EOF marks. The tape is positioned on the beginning-of-tape side of the EOF mark.
bsr Back spaces count records.
nbsf Back spaces count files. The tape is positioned on the first block of the file. This is equivalent to
count+1 bsf's followed by one fsf.
asf Specifies absolute space to count file number. This is equivalent to a rewind followed by a fsf count.
If count is specified with any of the following commands, the count is ignored and the command is performed only once.
eom Spaces to the end of recorded media on the tape. This is useful for appending files onto previously written
tapes.
rewind Rewinds the tape.
offline Rewinds the tape and, if appropriate, takes the drive unit off-line by unloading the tape.
rewoffl
status Prints status information about the tape unit.
retension Rewinds the cartridge tape completely, then winds it forward to the end of the reel and back to beginning-
of-tape to smooth out tape tension.
reserve Allows the tape drive to remain reserved after closing the device. The drive must then be explicitly
released.
release Re-establishes the default behavior of releasing at close.
forcereserve Breaks the reservation of the tape drive held by another host and then reserves the tape drive. This com-
mand can be executed only with super-user privileges.
erase Erases the entire tape. Caution: Some tape drives have option settings where only portions of the tape may
be erased. Be sure to select the correct setting to erase the whole tape. Erasing a tape may take a long
time depending on the device and/or tape. Refer to the device specific manual for time details.
config Reads the drives current configuration from the driver and displays it in st.conf format. See st(7D) for
definition of fields and there meanings.
EXIT STATUS
0 All operations were successful.
1 Command was unrecognized or mt was unable to open the specified tape drive.
2 An operation failed.
FILES
/dev/rmt/* magnetic tape interface
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO tar(1), tcopy(1), ar.h(3HEAD), environ(4), attributes(5), mtio( 7I), st(7D)BUGS
Not all devices support all options. Some options are hardware-dependent. Refer to the corresponding device manual page.
mt is architecture sensitive. Heterogeneous operation (that is, SPARC to x86 or the reverse) is not supported.
SunOS 5.10 1 Sep 2004 mt(1)