10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
i know from the command line, the symbol $_ is used to get the last command that was run.
however, id like to replicate this within a script.
meaning, how do i do something like this:
#!/bin/sh
ps -ef | egrep talling
StoreThisLastCommandA=$_
awk '/error/ {print $3}' /tmp/test... (5 Replies)
Discussion started by: SkySmart
5 Replies
2. UNIX for Dummies Questions & Answers
Hi all,
Did a couple of Google searchs, a couple of searchs on the site here and didn't find an answer... But, maybe I'm not searching for the right phrases.
My question; what creates the full color menus on the command line in unix?
I'm looking for something that would replicate the... (3 Replies)
Discussion started by: jtollefson
3 Replies
3. Solaris
Guy's
There is command in AIX called mksysb -i it's taking backup for all system , is there any similar command in Solaris doing the same thing in Solaris ? (8 Replies)
Discussion started by: ITHelper
8 Replies
4. Red Hat
How can i perform a ls or other command to list the full paths of files from a ls?
Looked through the man page for ls, no luck
$ cd /tmp/
$ ls -l
total 6
drwx------ 2 root root 4096 Nov 7 2008 keyring-7b5rMv
drwx------ 2 bcr bcr 4096 Dec 7 2007 keyring-cGhir8
$
I'd be looking for... (1 Reply)
Discussion started by: brendan76
1 Replies
5. Cybersecurity
I am looking for a really good command logging tool to improve the auditing of my servers. I have previously used snoopy but this is currently a bit flaky and causing serious problems for me, it doesn't look like it's been maintained since 2004, it didn't even want to compile until I added -fPIC... (1 Reply)
Discussion started by: humbletech99
1 Replies
6. UNIX for Advanced & Expert Users
hi
The "ps" command shows the command line arguments of running processes:
$ /bin/ps -o pid,args -e
....
26031 pico /tmp/crontab2KaG1Y
596 /usr/lib/sendmail -bd -q15m
9955 xterm -n 1 -sb -sl 800 -g 80+70+70
2627 /usr/sbin/snmpd -Lsd -Lf /dev/null -p /var/run/snmpd -a 1691
....
I... (2 Replies)
Discussion started by: Andrewkl
2 Replies
7. UNIX for Dummies Questions & Answers
Hi all.
I have a problem renaming a file.
It is called "data_200711051002.csv" (for example) and I want to rename it automatically to "data.csv" in a routine in a program named Ascential.
Those numbers are a time stamp, so every time the file is loaded into the server, they will change.
... (2 Replies)
Discussion started by: absolutdani
2 Replies
8. AIX
Hi,
I am running java process that has a long command line.
Is there a way to get the full command line?
By running ps -ef has returns around 2000 chars
By running ps eww returns around 2020 chars
I am running on AIX 5.3
Thanks,
Fredy (0 Replies)
Discussion started by: fredy
0 Replies
9. UNIX for Advanced & Expert Users
Hi,
I am running on Sun10 platform. I am trying to retrieve the full command line for a process by running ps (/usr/bin/ps or /usr/ucb/ps).
Running the "/usr/ucb/ps -agxuwwwww PID" with the user that executed the process i get the full command line. Running the same command with another user on... (4 Replies)
Discussion started by: fredy
4 Replies
10. UNIX for Dummies Questions & Answers
Hello,
I am new to this forum and relatively new to unix, but hope to become an expert soon!
My question is: How can I find out the execution time of a command that has already completed execution? More specifically, I launched a Python script to populate a PostgreSQL database on Suse... (2 Replies)
Discussion started by: marina
2 Replies