Sponsored Content
Top Forums Shell Programming and Scripting Creating dated folder name in SMB share Post 303001827 by sdch1000 on Friday 11th of August 2017 05:32:59 PM
Old 08-11-2017
Creating dated folder name in SMB share

I can't seen to figure this out. Let's say I want to create a folder with the name "August2017". In regular terminal prompt I can type
Code:
mkdir `date +%B%Y`

But when I'm connected to a SMB share (at the smb: prompt), the command doesn't translate properly. A folder gets created but the name is `date

What's the correct syntax to get this working?

Thanks!
Moderator's Comments:
Mod Comment Please use CODE tags (not B tags) when displaying sample input, output, and code segments.

Last edited by Don Cragun; 08-11-2017 at 07:07 PM.. Reason: Change B tags to CODE and ICODE tags.
 

9 More Discussions You Might Find Interesting

1. Linux

how i can share from fc5 folder

hai friends i am using fc5 i configured samba and i can access windows files and folders in my network of linux. but in windows(xp.2000) i can not access my fc5 folder. pls x-xplain me anybody what i need to do in gui of fc5 for to enable to share my files and folders to windows(my samba... (0 Replies)
Discussion started by: sadiquep
0 Replies

2. HP-UX

How to Share out a folder in Hp UX 10.20 OS

Hi all, I'm new to UNIX and recently i just being assign to work with a HP UX 10.20 Operation Systems. So i wonder if i can share out some folder in the system as this UNIX is link to another Windows base PC. My purpose is to do some auto file maintenance where i can copy/delete files in UNIX... (1 Reply)
Discussion started by: sim2004
1 Replies

3. Solaris

how to share a folder from windows xp to solaris 8

how to share a folder from windows xp to solaris 8? with out using samba?it is possible or not for sharing a folder between windows and solaris 8 (1 Reply)
Discussion started by: tv.praveenkumar
1 Replies

4. Shell Programming and Scripting

Apache/CGI Bin Accessing mounted SMB share

Hey Guys, I need to copy some files from my Apache server to SMB share ... copy $file,"/Volumes/v1/x/test/$datestamp$name$suffix" Unfortunately this command when executed from Apache/cgi-bin is not able to access mounted volumes .. is there anything that can be done about that ... Can... (1 Reply)
Discussion started by: NDxiak
1 Replies

5. Solaris

mounting windows share folder

please help me,,i need step to mount windows share folder,,i try samba and nfs and it didnt work (in my linux server the command is fine),,can somenone give me an example for this to be done? (0 Replies)
Discussion started by: Cellscript
0 Replies

6. Solaris

mount windows share folder

all,,i need help,,i try to mount a windows 2000 share folder to my system,,i already userd smb mount,mount -F and bunch of stuff and none is working,,can anyone give me a script to this?? PS : when i use mount -F i got this message : nfs mount: insufficient privileges ,,, is it must be root ? (6 Replies)
Discussion started by: Cellscript
6 Replies

7. OS X (Apple)

SMB Connection Resolve to AD, Point to User Share

I've got an unusual problem that deals with connecting via SMB under Snow Leopard, to a directory share with over 1,000 users. When I connect to the main directory share, the next level reveals 1,000 users, but I'd like to have the connection identify me as a registered user in AD at the time of... (0 Replies)
Discussion started by: unimachead
0 Replies

8. Solaris

creating a share file

Hello Solaris Gurus, can anyone please explain to me how to create a share file to share across network? Thanks (2 Replies)
Discussion started by: cjashu
2 Replies

9. Solaris

auto mount SMB share on Solaris 10

I CANNOT use autmounter so should I just write the command as an /etc/rc script or is it possible to auto mount the share via the vfstab? (4 Replies)
Discussion started by: LittleLebowski
4 Replies
RMF(1)								     [nmh-1.5]								    RMF(1)

NAME
rmf - remove an nmh folder SYNOPSIS
rmf [+folder] [-interactive | -nointeractive] [-version] [-help] DESCRIPTION
Rmf removes all of the messages (files) within the specified (or default) folder, and then removes the folder (directory) itself. If there are any files within the folder which are not a part of nmh, they will not be removed, and an error will be produced. If the folder is given explicitly or the -nointeractive option is given, then the folder will be removed without confirmation. Otherwise, the user will be asked for confirmation. If rmf can't find the current folder, for some reason, the folder to be removed defaults to `+inbox' (unless overridden by user's profile entry "Inbox") with confirmation. If the folder being removed is a subfolder, the parent folder will become the new current folder, and rmf will produce a message telling the user this has happened. This provides an easy mechanism for selecting a set of messages, operating on the list, then removing the list and returning to the current folder from which the list was extracted. If rmf s used on a read-only folder, it will delete all the (private) sequences (i.e., "atr-seq-folder" entries) for this folder from your context without affecting the folder itself. Rmf irreversibly deletes messages that don't have other links, so use it with caution. FILES
$HOME/.mh_profile The user profile PROFILE COMPONENTS
Path: To determine the user's nmh directory Current-Folder: To find the default current folder Inbox: To find the default inbox SEE ALSO
rmm(1) DEFAULTS
`+folder' defaults to the current folder, usually with confirmation `-interactive' if +folder' not given, `-nointeractive' otherwise CONTEXT
Rmf will set the current folder to the parent folder if a subfolder is removed; or if the current folder is removed, it will make "inbox" current. Otherwise, it doesn't change the current folder or message. BUGS
Although intuitively one would suspect that rmf works recursively, it does not. Hence if you have a sub-folder within a folder, in order to rmf the parent, you must first rmf each of the children. MH.6.8 11 June 2012 RMF(1)
All times are GMT -4. The time now is 02:01 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy