Sponsored Content
Full Discussion: The trouble about SU ...
Top Forums UNIX for Dummies Questions & Answers The trouble about SU ... Post 85427 by nulnul7 on Wednesday 5th of October 2005 10:46:34 AM
Old 10-05-2005
Ok, there you go :

As root.

su - dbuser -c "customers.exe upd_prclst"

or

su - dbuser -c "customers.exe upd_prclst;exit"

is putting me into a new shell as user dbuser.

This user then has full access to all of his environment but the prog customers.exe upd_prclst is not ran.

I then key in an exit command which puts me back to the root environment. The prog is executed ok in the dbuser shell.

I suppose there must be a CTRL-D or something missing but Smilie Smilie Smilie
 

10 More Discussions You Might Find Interesting

1. UNIX Desktop Questions & Answers

trouble

Hello, The system reboots in single user mode what command to use to bring the system up regularly?? I get INIT: cannot create /var/adm/utmpx Type control -d to proceede with a normal startup or give root passwd for system maintaince. either way i don't have a change and ... (1 Reply)
Discussion started by: awk
1 Replies

2. What is on Your Mind?

The trouble with...

Welcome to "The trouble with...." with your host, ZazzyBob. Todays offering - "The trouble with letting other people host your website" I use a certain web hosting service, who shall of course remain nameless here. They are running PHP 4.3.10 I decide to write a script to test their PHP... (6 Replies)
Discussion started by: zazzybob
6 Replies

3. AIX

license trouble

Hi, we currently use a valisys licence : it is based on a server (serv1) it is reached only by one workstation (cam1) In all licence files there is line with cam1 et serv1 We want to use cam22 (new workstation) instead of cam1 I made a copy the licences files with remplacing cam1 by cam22... (0 Replies)
Discussion started by: cadmanager
0 Replies

4. Solaris

Trouble with tr

I'm not sure where to post this but it's happening on a SunOS 5.8 server so I'll try here. I've discovered some unexpected behavior when using tr. For example: echo a | tr Z echo b | tr a echo a | tr B echo a | tr B echo a | tr A (8 Replies)
Discussion started by: Mike@Work
8 Replies

5. Shell Programming and Scripting

Trouble with Backslashes

Hi folks, there are windows device names in the sixth column of a comma separated file. A example device name is: \\.\Tape0 I don't get the all string in to a variable, because of the preceding backslash. The first backslash is just cut off and my attempts to manipulate the string afterward... (0 Replies)
Discussion started by: wibo1
0 Replies

6. UNIX for Dummies Questions & Answers

trouble mounting

What is the possible cause for the mount command to take ages? im trying to mount remotely : "mount -t nfs xx.x.x.x:/export/xyz/cdrom-4.0 /mnt/cdrom" on a system using bash. Im able to ping the remote server, but the system hangs or takes about half an hour to carry out this mount command.... (4 Replies)
Discussion started by: sahilb
4 Replies

7. UNIX for Dummies Questions & Answers

X trouble

Hi there, I'm new to unix-environments. I'm richard, and i'm mostly a web-developer, under php. I've done work in unix env before, but never had my own. Today, I've got debian 3.1 r4 from the official site, and i've attempted to install it twice. I installed it initially as "Desktop... (0 Replies)
Discussion started by: izua
0 Replies

8. UNIX for Dummies Questions & Answers

trouble with awk

I am trying to figure awk. I have a file in my home directory called testawk.sh, have made it executable, and have run it... But don't see any output. This is the contents of the file: #!/usr/bin/awk -f { print " - HI -" }I enter ./testawk.sh in the prompt, press enter, and watch as the... (2 Replies)
Discussion started by: matthewden
2 Replies

9. Programming

Trouble with C

Hey, i am having a problem First, i know java well and i have used C++ on occasion so i thought i would be able to deal with a class where they program in C. unfortunately i have hit some speed bumps that i am having problems. Here is my problem: I have a structure cache_t in the sample... (0 Replies)
Discussion started by: zephoid
0 Replies

10. UNIX and Linux Applications

gnuplot trouble

I am having a bit of trouble plotting a histogram in gnuplot. I am trying to use it to draw bars side by side. The first bar is from column five in my data file. The second bar is actually three bars stacked on top of each other and should be as tall as the first bar. The data is from the 2nd,... (0 Replies)
Discussion started by: kingnothing
0 Replies
logjam(1)							    LiveJournal 							 logjam(1)

NAME
logjam - GTK+ client for LiveJournal SYNOPSIS
logjam [OPTIONS] [FILE] DESCRIPTION
logjam is a GTK+ client for LiveJournal-based sites such as livejournal.com. Aside from writing entries, logjam lets you modify your friends list, edit your previous entries, and more. When run with no arguments (or just username option), logjam will run in the GUI mode. The user interface is mostly self-explanatory, and won't be discussed here in detail, except for a few notes below. OPTIONS AND COMMANDS
Options can be given in either short or long forms. For help on a particular commands, type "logjam COMMAND help". For example, "logjam grep help" will supply help about the grep command. Options: -v, --version Show version of program. -q, --quiet Say less. -u, --username=USERNAME Username to operate as. -p, --password=PASSWORD Password for the current user. -a, --postas=USERNAME User/community to post as. -f, --file=FILE File to load. -e, --edit Use default editor to edit post. Subcommands: checkfriends Efficiently check friends list for updates. console Run a command on the LiveJournal console. post Post event immediately. offline Manage offline copies of your journal. user Manage user list. Also, GTK+ command line options (such as --display) can be used. GUI
This section describes some of the GUI features that aren't immediately apparent. Check Friends logjam can monitor your friends list and notify you when new entries are posted there. Enable this by right-clicking on the indicator at the bottom-left corner of the application window and selecting the appropriate menu item. You may also configure logjam to start doing this automatically for you when you login. When new entries are detected, the indicator will turn red to let you know; click it to resume monitoring or double-click it to open your browser on your friends page. Optionally, you can have logjam open a small "floating" indicator which has some useful GUI settings of its own. Owners of large friends lists may prefer to be notified only after they accumulate several new posts. You may set the threshold for this in the Check Friends settings tab. The default is 1, that is, logjam will tell you immediately when it detects new traffic on your friends page. There is a small limit on the maximum threshold allowed, because this feature is only useful with small threshold values. STARTUP
When given a FILE argument, logjam will start up with an existing file as the base for the composed entry. If the filename given is "-", the data will be read from standard input. Several aspects of the entry, such as its subject field and the journal in which to post it to, can be controlled by other options. This is useful in conjunction with the --commandline option, which causes logjam to post an entry without going to GUI mode, allowing completely non-interactive posts. If you do wish to interactively edit the entry, but don't want to load the GUI, use the --edit option. Autosave logjam will periodically save a draft of your currently edited entry in ~/.logjam/draft if you turn on the draft option in the Preferences dialog. This feature is intended for crash recovery, not archiving. If you want to keep a copy of your posts, you should use the Entry > Save As menu option before submitting them. A future version of logjam will support archiving of your journal. Please note that when you exit the client normally, your draft is cleared. It does not "stick" for the next invocation, as in the behavior of some other clients. Checking friends from the command line You can use logjam as a backend for a script or another application that wishes to check the friends view. This may be useful if you don't want to use the GUI, or if you have several journals (in conjunction with --username). To do this, invoke logjam once with --checkfriends=purge (-rpurge if you're using short options), and then something like: logjam --checkfriends && new-entries-handler Make sure that your script or application purges the checkfriends status as described above once the user has acknowledged the new items, otherwise logjam will always report there's nothing new. You should also pay attention to limiting your query rate, despite the fact that logjam will refuse to flood the server with queries. For more information, see the messages on the command line. (To suppress these messages, use --quiet.) SEE ALSO
<http://logjam.danga.com> <http://www.livejournal.com/users/logjam/> <http://www.livejournal.com> AUTHOR
This manual page was mostly written by Gaal Yahas <gaal@forum2.org>. 4.1.1 2003-04-25 logjam(1)
All times are GMT -4. The time now is 01:47 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy