7 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi all,
I have to test some user priviliges. The goal is to be sure that an unauthorized user can't restart some modules (ssh, mysql etc...).
I'm trying to automate it with a shell script but in same cases I got the syslog broadcast message.
Is there any way to simply get a return code... (3 Replies)
Discussion started by: Dedalus
3 Replies
2. What is on Your Mind?
Ok, I have to ask... :o
At the risk of starting a huge controversy (yet another), I must ask the question: why would one want to use vi/emacs* to edit bash, awk, perl, python, scripts or java, c/c++, programs
It all started because I'm looking for a good IDE to edit my bash scripts and... (6 Replies)
Discussion started by: anthalamus
6 Replies
3. Red Hat
Hello all,
If anyone has time, I have a few questions:
How do I do the following in Linux. We are using Red Hat and Oracle Enterprise Linux, which is based on Red Hat too.
1. How to lock the account after a few (like 3) invalid password attempts?
2. How do you lock a screen after 30... (1 Reply)
Discussion started by: nstarz
1 Replies
4. Filesystems, Disks and Memory
Wellcomes All,
some times ago I 've installed a Debian ditribution on an Hard Disk who was set as Primary Master. Few days ago, I 've decided to install another Hard Disk with a different Operating System. When I did that, I turned off the old hard disk, and I mouted the new one on the Primary IDE... (1 Reply)
Discussion started by: thekarsillo
1 Replies
5. UNIX for Dummies Questions & Answers
Hello, I have been searching for a way to spawn new processes in a different workspace with no luck. Does anyone know how to do this at the command prompt. I wish to do something like this.
>vi a.txt & | workspace 2
is there any way to do this? (3 Replies)
Discussion started by: ineedhelp#1
3 Replies
6. HP-UX
Experts,
How to configure to add the printer icon in the workspace. I compared with C3700 and C8000 machine the C3700 have it but in C8000 didnt appeared. they are both running hpux 11.11.
apprciate your inputs.
Thanks (0 Replies)
Discussion started by: eykyn17
0 Replies
7. UNIX for Dummies Questions & Answers
how can I lock my keyboard while I'm away from the computer without using lock command. What other commands gives me the option to lock keyboard device?
thanks (7 Replies)
Discussion started by: dianayun
7 Replies
STRUT(1p) User Contributed Perl Documentation STRUT(1p)
NAME
strut - command line interface (using Socialtext::Resting) to the Socialtext REST services
SYNOPSIS
strut help
strut configure
strut list_workspaces
strut list_pages <workspace>
strut get_page <workspace> <pagename>
strut set_page <workspace> <pagename> <filename>
strut list_tags <workspace> <pagename>
strut put_tag <workspace> <pagename> <tag>
strut set_tags <workspace> <pagename> <tags>
strut list_tagged_pages <workspace> <tag>
strut list_attachments <workspace> <pagename>
strut get_attachment <workspace> <pagename> <attachment>
strut add_attachment <workspace> <pagename> <filename>
strut show_breadcrumbs <workspace>
strut show_backlinks <workspace> <pagename>
strut show_frontlinks <workspace> <pagename>
All list operations can further be controlled with the following operations:
--query (search term for within the results)
--filter (filter the titles of the results)
--order (only accepts 'newest' right now)
--count (restrict number of returned results)
--accept (for your accept headers - text/html, text/plain, application/json)
Example:
strut --query=searchterm --filter=titlefilter --order=newest --count=number list_pages myworkspace
COMMANDS
The following commands are supported
help
Standard man page for this program
configure
Configure strut with username, password, and server information. See the CONFIGURATION section below for a discussion of your
configuration options.
show_breadcrumbs
Get the breadcrumbs for the current user in this workspace.
list_workspaces
Give a list of all workspaces on the server
list_workspace_tags <workspace>
List the tags for a workspace.
list_pages <workspace>
Give a list of all pages in the given workspace. If no workspace is given you will be prompted to pick from available workspaces.
list_tagged_pages <workspace>
Give a list of all pages in the given workspace with the given tag.
get_page <workspace> <page_name>
Retrieve the contents of the specified page. If no workspace or page are given the user will be prompted to select from the available
workspaces/pages.
set_page <workspace> <page_name> <filename>
Save the specified page on the system.
add_attachment <workspace> <page_name> <filename>
Add the attachment to the specified page on the system.
list_attachments <workspace> <page_name>
List all attachments on the specified page.
list_pagetags <workspace> <page_name>
List all tags on the specified page.
show_backlinks <workspace> <page_name>
Show backlinks to the specified page name.
show_frontlinks <workspace> <page_name>
Show frontlinks to the specified page name.
put_tag <workspace> <page_name> <tag>
Add the specified tag to the specified page name.
set_tags <workspace> <page_name> <tags>
Set the tags for the specified page name.
CONFIGURATION
In order to run correctly, strut needs to have a username, password, and server name. This can be configured in one of several ways:
Command line:
strut --username <username> --password <password> --server <server>
Environment variables:
STRUT_USERNAME
STRUT_PASSWORD
STRUT_SERVER
Configuration file:
~/.app/strut.conf
If strut can't determine your username/password/server, it will call the 'configure' subcommand to create a configuration file for you.
AUTHORS
<chris.dent@socialtext.com>
<kirsten.jones@socialtext.com>
perl v5.14.2 2012-04-23 STRUT(1p)