Thread Richtige Parameter bei Net::Telnet (13 answers)
Opened by bianca at 2015-10-07 09:07

bianca
 2015-10-07 11:12
#182516 #182516
User since
2009-09-13
6978 Artikel
BenutzerIn

user image
2015-10-07T07:44:45 Raubtier
1. bei mit tut es die Forumssoftware korrekt mit den Code-Tags (allerdings nur, wenn ich mit /code schließe, vielleicht hast du nur den Slash vergessen?)

Diese BBCode Korrektur hat mir reingefunkt, danach war ich durcheinander :)

2015-10-07T07:44:45 Raubtier
Vielleicht ist es am einfachsten, einfach $t->cmd("export PS1=''") auszuführen, um den Prompt auf einen Leerstring zu setzen?

Dann kommt das Perlscript nicht zurück, geht also nicht.

2015-10-07T07:44:45 Raubtier
Die Escape-Sequenzen um die Ausgabe (das ist die Farbe!) bekommst du weg mit: ls -1 --color=never (das -1 geht sicher, dass nur eine Datei pro Zeile zurück kommt)

Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/bin/ls: unrecognized option `--color=never'
BusyBox v1.01 (2015.09.24-18:54+0000) multi-call binary

Usage: ls [-1AacCdeFilnpLRrSsTtuvwxXhk] [filenames...]

List directory contents

Options:
-1 list files in a single column
-A do not list implied . and ..
-a do not hide entries starting with .
-C list entries by columns
-c with -l: show ctime
-d list directory entries instead of contents
-e list both full date and full time
-F append indicator (one of */=@|) to entries
-i list the i-node for each file
-l use a long listing format
-n list numeric UIDs and GIDs instead of names
-p append indicator (one of /=@|) to entries
-L list entries pointed to by symbolic links
-R list subdirectories recursively
-r sort the listing in reverse order
-S sort the listing by file size
-s list the size of each file, in blocks
-T NUM assume Tabstop every NUM columns
-t with -l: show modification time
-u with -l: show access time
-v sort the listing by version
-w NUM assume the terminal is NUM columns wide
-x list entries by lines instead of by columns
-X sort the listing by extension
-h print sizes in human readable format (e.g., 1K 243M 2G )


2015-10-07T07:44:45 Raubtier
Und ich würde mal vermuten, dass das \r in den Separator-Einstellungen eigentlich weg kann.

Im Ursprungsscript gelöscht ändert das leider garnichts.
10 print "Hallo"
20 goto 10

View full thread Richtige Parameter bei Net::Telnet