Jump to content

Change Terminal size


BeNe

Recommended Posts

I installed the coreutils-tty with opkg but had no look to resize the terminal with rows and columns.

Is there any other option ?

How can i see the _full_ command with ps for example on the shell ?

Link to comment
Share on other sites

Here is a script that show´s you the full command on shell.

OpenWRT comes with a modified ps command from busybox that cuts the output on a fixed size.

Without Script (normal)

root@Pineapple:~# ps -aef | grep wpa_supplicant
 4975 root      1628 S    wpa_supplicant -B -P /var/run/wifi-wlan2.pid -D nl80
17285 root      1512 S    grep wpa_supplicant
root@Pineapple:~#

With Script (full command)

root@Pineapple:~# ./full-command.sh wpa_supplicant
4975 wpa_supplicant -B -P /var/run/wifi-wlan2.pid -D nl80211 -i wlan2 -c /var/run/wpa_supplicant-wlan2.conf
root@Pineapple:~#

Here is the full-command.sh script

pgrep $1 | while read a; do
echo -n $a" "
cat /proc/$a/cmdline | tr "\0" " "
echo
done
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...