10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
the only way we can power off is if we actually press power button on server. Running on HP DL-G4. from root, when we issue command it just returns to root prompt. (1 Reply)
Discussion started by: amexboy
1 Replies
2. UNIX for Beginners Questions & Answers
Hello,
I am on a Mac and trying to clean up some monthly files with a very simple SED:
sed '3,10d;/<ACROSS>/,$d' input.txt > output.txt
(from the input, delete lines 3 - 10; then delete from the line containing <ACROSS> to the end of the file)
then output to output.txt
Even when I try... (2 Replies)
Discussion started by: verbatim
2 Replies
3. Shell Programming and Scripting
Hi,
Here is the output using bash profile on Linux
uptime
04:59:14 up 16 days, 4:48, 2 users, load average: 1.00, 1.00, 1.20
Here is the output using bash profile on Solaris
uptime
4:00am up 84 day(s), 22:21, 3 users, load average: 0.09, 0.10, 0.12
Now,... (4 Replies)
Discussion started by: mohtashims
4 Replies
4. AIX
Could you please help me with the syntax to execute tmadmin command in AIX server?
I have a script that works fine in Linux (OEL). Below is the one :
tmadmin 2> /dev/null > /tmp/psstat1 <<EOF
psr
quit
EOF
I need the corresponding one in AIX. The same command is not working. Tried making... (3 Replies)
Discussion started by: Pandee
3 Replies
5. UNIX for Dummies Questions & Answers
Hello,
When I am trying to use tail +13 filename.csv it is throwing an error.
tail: cannot open `+13' for reading: No such file or directory and then prints last 10 lines of the file. (File is present on the path)
But when i try tail -13 filename.csv it runs perfectly.
Could I have... (5 Replies)
Discussion started by: AnkitSenghani
5 Replies
6. Shell Programming and Scripting
Hi All,
I am using the below script which has awk command, but it is not returing the expected result. can some pls help me to correct the command.
The below script sample.ksh should give the result if the value of last 4 digits in the variable NM matches with the variable value DAT. The... (7 Replies)
Discussion started by: G.K.K
7 Replies
7. Red Hat
Hi,
:wall:
I am not able to run any utility command in Redat, Please see the below example and suggest me how I shall run this type of command.
$ su
Password:
# ifconfig
bash: ifconfig: command not found
# which ifconfig
/usr/bin/which: no ifconfig in... (3 Replies)
Discussion started by: pradipta_pks
3 Replies
8. Shell Programming and Scripting
I ran one the script in debug mode in linux and have a problem
ret='$prmAttunityUser=ais'
Now i need to remove $ from this '$prmAttunityUser=ais' so i had added a sed command like this sed 's/$//g' but its not working could you all please help me with an alternate command
I want the output... (3 Replies)
Discussion started by: vee_789
3 Replies
9. UNIX for Dummies Questions & Answers
Hi all,
I was trying to install from source USB_ModeSwitch on my Mac. I have always had success with the basic ./configure, make, make install commands in terminal so don't know how, why or what.
The issue I came across is that the makefile.conf uses the -D flag while installing and on UNIX... (0 Replies)
Discussion started by: jprokos
0 Replies
10. Shell Programming and Scripting
Hi,
I am issuing find command below mentioned ways but it givs different count. I don't understand the behaviour. Could any one have any clue?
$ find . -mtime -5 -maxdepth 1 -exec ls -lrt {} \; | wc -l
169
$ find . -mtime -5 -maxdepth 1 | wc -l
47
$ find . -mtime -5 -maxdepth 1 | wc -l... (2 Replies)
Discussion started by: siba.s.nayak
2 Replies
I3-MSG(1) i3 Manual I3-MSG(1)
NAME
i3-msg - send messages to i3 window manager
SYNOPSIS
i3-msg [-t type] [message]
IPC MESSAGE TYPES
command
The payload of the message is a command for i3 (like the commands you can bind to keys in the configuration file) and will be executed
directly after receiving it.
get_workspaces
Gets the current workspaces. The reply will be a JSON-encoded list of workspaces.
get_outputs
Gets the current outputs. The reply will be a JSON-encoded list of outputs (see the reply section).
get_tree
Gets the layout tree. i3 uses a tree as data structure which includes every container. The reply will be the JSON-encoded tree.
get_marks
Gets a list of marks (identifiers for containers to easily jump to them later). The reply will be a JSON-encoded list of window marks.
get_bar_config
Gets the configuration (as JSON map) of the workspace bar with the given ID. If no ID is provided, an array with all configured bar IDs
is returned instead.
DESCRIPTION
i3-msg is a sample implementation for a client using the unix socket IPC interface to i3.
EXAMPLES
# Use 1-px border for current client
i3-msg "border 1pixel"
# You can leave out the quotes
i3-msg border normal
# Dump the layout tree
i3-msg -t get_tree
ENVIRONMENT
I3SOCK
If no ipc-socket is specified on the commandline, this variable is used to determine the path, at wich the unix domain socket is expected,
on which to connect to i3.
SEE ALSO
i3(1)
AUTHOR
Michael Stapelberg and contributors
i3 4.1.2 01/01/2013 I3-MSG(1)